diff options
| author | bulia byak <buliabyak@gmail.com> | 2008-07-05 22:14:22 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2008-07-05 22:14:22 +0000 |
| commit | d10d41b6ab4c5571c6544338de2959ec4033454d (patch) | |
| tree | 4ec2b3fc9dea6df3598609486655e7ad55980f24 /src | |
| parent | fix 245806 (diff) | |
| download | inkscape-d10d41b6ab4c5571c6544338de2959ec4033454d.tar.gz inkscape-d10d41b6ab4c5571c6544338de2959ec4033454d.zip | |
move undo commits closer to the UI
(bzr r6195)
Diffstat (limited to 'src')
| -rw-r--r-- | src/live_effects/effect.cpp | 3 | ||||
| -rw-r--r-- | src/live_effects/parameter/path.cpp | 4 | ||||
| -rw-r--r-- | src/ui/dialog/livepatheffect-editor.cpp | 3 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index 384873018..339e5c833 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -197,9 +197,6 @@ Effect::createAndApply(const char* name, SPDocument *doc, SPItem *item) gchar *href = g_strdup_printf("#%s", repr_id); sp_lpe_item_add_path_effect(SP_LPE_ITEM(item), href, true); g_free(href); - - sp_document_done(doc, SP_VERB_DIALOG_LIVE_PATH_EFFECT, - _("Create and apply path effect")); } void diff --git a/src/live_effects/parameter/path.cpp b/src/live_effects/parameter/path.cpp index 16e579d16..0f6a82971 100644 --- a/src/live_effects/parameter/path.cpp +++ b/src/live_effects/parameter/path.cpp @@ -356,8 +356,6 @@ PathParam::paste_param_path(const char *svgd) param_write_to_repr(svgd); signal_path_pasted.emit(); - sp_document_done(param_effect->getSPDoc(), SP_VERB_DIALOG_LIVE_PATH_EFFECT, - _("Paste path parameter")); } void @@ -366,6 +364,8 @@ PathParam::on_paste_button_click() Inkscape::UI::ClipboardManager *cm = Inkscape::UI::ClipboardManager::get(); Glib::ustring svgd = cm->getPathParameter(); paste_param_path(svgd.data()); + sp_document_done(param_effect->getSPDoc(), SP_VERB_DIALOG_LIVE_PATH_EFFECT, + _("Paste path parameter")); } void diff --git a/src/ui/dialog/livepatheffect-editor.cpp b/src/ui/dialog/livepatheffect-editor.cpp index c1bbaa022..abf79d98d 100644 --- a/src/ui/dialog/livepatheffect-editor.cpp +++ b/src/ui/dialog/livepatheffect-editor.cpp @@ -331,6 +331,9 @@ LivePathEffectEditor::onApply() LivePathEffect::Effect::createAndApply(data->key.c_str(), doc, item); + sp_document_done(doc, SP_VERB_DIALOG_LIVE_PATH_EFFECT, + _("Create and apply path effect")); + onSelectionChanged(sel); } } |
