summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3a8a771)
raw | patch | inline | side by side (parent: 3a8a771)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Sun, 18 Mar 2007 04:05:43 +0000 (04:05 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Sun, 18 Mar 2007 04:05:43 +0000 (04:05 +0000) |
src/splivarot.cpp | patch | blob | history |
diff --git a/src/splivarot.cpp b/src/splivarot.cpp
index 377a060155b8ccac08c513a862772ee99aac661a..f2a115f43c9657f3a031e83929e1d6a76ec42281 100644 (file)
--- a/src/splivarot.cpp
+++ b/src/splivarot.cpp
gchar *simplificationType;
if (simplifyIndividualPaths) {
- simplificationType = "individual paths";
+ simplificationType = _("Simplifying paths (separately):");
} else {
- simplificationType = "as a group";
+ simplificationType = _("Simplifying paths:");
}
bool didSomething = false;
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;
}
}
-
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;