summaryrefslogtreecommitdiffstats
path: root/src/verbs.cpp
diff options
context:
space:
mode:
authorAlexander Brock <zaibu@lunar-orbit.de>2016-11-04 14:18:24 +0000
committerAlexander Brock <zaibu@lunar-orbit.de>2016-11-04 14:18:24 +0000
commite3aa2bb36fc7567d320cdc46e14a425aa84d3c74 (patch)
treed39efa77f8c11008b7d9ccf8999d078057144237 /src/verbs.cpp
parentRevert two changes from r15177 (diff)
parentAdd recursive clone unlink feature (diff)
downloadinkscape-e3aa2bb36fc7567d320cdc46e14a425aa84d3c74.tar.gz
inkscape-e3aa2bb36fc7567d320cdc46e14a425aa84d3c74.zip
Add "Edit->Clone->Unlink Clones recursively" function (ObjectSet::unlinkRecursive)
(bzr r15204.1.1)
Diffstat (limited to 'src/verbs.cpp')
-rw-r--r--src/verbs.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/verbs.cpp b/src/verbs.cpp
index dc92545e2..13a6c6dc5 100644
--- a/src/verbs.cpp
+++ b/src/verbs.cpp
@@ -1009,6 +1009,9 @@ void EditVerb::perform(SPAction *action, void *data)
case SP_VERB_EDIT_UNLINK_CLONE:
dt->selection->unlink();
break;
+ case SP_VERB_EDIT_UNLINK_CLONE_RECURSIVE:
+ dt->selection->unlinkRecursive();
+ break;
case SP_VERB_EDIT_RELINK_CLONE:
dt->selection->relink();
break;
@@ -2530,6 +2533,8 @@ Verb *Verb::_base_verbs[] = {
N_("Create a clone (a copy linked to the original) of selected object"), INKSCAPE_ICON("edit-clone")),
new EditVerb(SP_VERB_EDIT_UNLINK_CLONE, "EditUnlinkClone", N_("Unlin_k Clone"),
N_("Cut the selected clones' links to the originals, turning them into standalone objects"), INKSCAPE_ICON("edit-clone-unlink")),
+ new EditVerb(SP_VERB_EDIT_UNLINK_CLONE_RECURSIVE, "EditUnlinkCloneRecursive", N_("Unlink Clones _recursively"),
+ N_("Unlink all clones in the selection, even if they are in groups."), INKSCAPE_ICON("edit-clone-unlink")),
new EditVerb(SP_VERB_EDIT_RELINK_CLONE, "EditRelinkClone", N_("Relink to Copied"),
N_("Relink the selected clones to the object currently on the clipboard"), NULL),
new EditVerb(SP_VERB_EDIT_CLONE_SELECT_ORIGINAL, "EditCloneSelectOriginal", N_("Select _Original"),