diff options
| author | bulia byak <buliabyak@gmail.com> | 2007-03-18 04:05:43 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2007-03-18 04:05:43 +0000 |
| commit | 367c33278e87c6f5467e14afb5b3dc7b614ed730 (patch) | |
| tree | 1c90a7280ef430aaba57cf7f2c276915a82c7d52 /src/splivarot.cpp | |
| parent | add clearing busy cursor (resets current context's cursor) (diff) | |
| download | inkscape-367c33278e87c6f5467e14afb5b3dc7b614ed730.tar.gz inkscape-367c33278e87c6f5467e14afb5b3dc7b614ed730.zip | |
copyedit; use IMMEDIATE_MESSAGE and remove canvas update in the middle; remove disableInteraction - not needed without the canvas update; set busy cursor
(bzr r2686)
Diffstat (limited to 'src/splivarot.cpp')
| -rw-r--r-- | src/splivarot.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
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 - <b>%d</b> of <b>%d</b> paths simplified..."), simplificationType, pathsSimplified, totalPathCount); - desktop->messageStack()->flash(Inkscape::NORMAL_MESSAGE, message); - desktop->updateCanvasNow(); + gchar *message = g_strdup_printf(_("%s <b>%d</b> of <b>%d</b> 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 - <b>%d</b> paths simplified."), pathsSimplified)); + desktop->messageStack()->flash(Inkscape::NORMAL_MESSAGE, g_strdup_printf(_("<b>%d</b> paths simplified."), pathsSimplified)); } return didSomething; |
