From: buliabyak Date: Sun, 18 Mar 2007 04:05:43 +0000 (+0000) Subject: copyedit; use IMMEDIATE_MESSAGE and remove canvas update in the middle; remove disabl... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=753b77172d1f11bc7958db7976dca7f472bf0769;p=inkscape.git copyedit; use IMMEDIATE_MESSAGE and remove canvas update in the middle; remove disableInteraction - not needed without the canvas update; set busy cursor --- diff --git a/src/splivarot.cpp b/src/splivarot.cpp index 377a06015..f2a115f43 100644 --- a/src/splivarot.cpp +++ b/src/splivarot.cpp @@ -1548,9 +1548,9 @@ sp_selected_path_simplify_items(SPDesktop *desktop, gchar *simplificationType; if (simplifyIndividualPaths) { - simplificationType = "individual paths"; + simplificationType = _("Simplifying paths (separately):"); } else { - simplificationType = "as a group"; + simplificationType = _("Simplifying paths:"); } bool didSomething = false; @@ -1566,7 +1566,8 @@ sp_selected_path_simplify_items(SPDesktop *desktop, int pathsSimplified = 0; int totalPathCount = g_slist_length(items); - desktop->disableInteraction(); + // set "busy" cursor + desktop->setWaitingCursor(); for (; items != NULL; items = items->next) { SPItem *item = (SPItem *) items->data; @@ -1583,23 +1584,21 @@ sp_selected_path_simplify_items(SPDesktop *desktop, } } - pathsSimplified++; if (pathsSimplified % 20 == 0) { - gchar *message = g_strdup_printf(_("Simplifying %s - %d of %d paths simplified..."), simplificationType, pathsSimplified, totalPathCount); - desktop->messageStack()->flash(Inkscape::NORMAL_MESSAGE, message); - desktop->updateCanvasNow(); + gchar *message = g_strdup_printf(_("%s %d of %d paths simplified..."), simplificationType, pathsSimplified, totalPathCount); + desktop->messageStack()->flash(Inkscape::IMMEDIATE_MESSAGE, message); } didSomething |= sp_selected_path_simplify_item(desktop, selection, item, threshold, justCoalesce, angleLimit, breakableAngles, simplifySize, modifySelection); } - desktop->enableInteraction(); - + desktop->clearWaitingCursor(); + if (pathsSimplified > 20) { - desktop->messageStack()->flash(Inkscape::NORMAL_MESSAGE, g_strdup_printf(_("Done - %d paths simplified."), pathsSimplified)); + desktop->messageStack()->flash(Inkscape::NORMAL_MESSAGE, g_strdup_printf(_("%d paths simplified."), pathsSimplified)); } return didSomething;