summaryrefslogtreecommitdiffstats
path: root/src/verbs.cpp
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-04-03 03:32:00 +0000
committerJohn Smith <removethis.john.q.public@bigmail.com>2012-04-03 03:32:00 +0000
commitbf5917550889e6a3af05b4b997327dbcc583381a (patch)
tree5d5482ce5288bab772a234e89a96211c998e93d9 /src/verbs.cpp
parentFix for 367607 : Remove deprecated GTK+ symbols - Deprecated *_unref symbols ... (diff)
downloadinkscape-bf5917550889e6a3af05b4b997327dbcc583381a.tar.gz
inkscape-bf5917550889e6a3af05b4b997327dbcc583381a.zip
Fix for 170378 : Select same objects by fill or stroke
(bzr r11141)
Diffstat (limited to 'src/verbs.cpp')
-rw-r--r--src/verbs.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/verbs.cpp b/src/verbs.cpp
index d7e5f6841..ab16c6c93 100644
--- a/src/verbs.cpp
+++ b/src/verbs.cpp
@@ -961,6 +961,15 @@ void EditVerb::perform(SPAction *action, void *data)
case SP_VERB_EDIT_SELECT_ALL:
SelectionHelper::selectAll(dt);
break;
+ case SP_VERB_EDIT_SELECT_SAME_FILL_STROKE:
+ SelectionHelper::selectSameFillStroke(dt);
+ break;
+ case SP_VERB_EDIT_SELECT_SAME_FILL:
+ SelectionHelper::selectSameFill(dt);
+ break;
+ case SP_VERB_EDIT_SELECT_SAME_STROKE:
+ SelectionHelper::selectSameStroke(dt);
+ break;
case SP_VERB_EDIT_INVERT:
SelectionHelper::invert(dt);
break;
@@ -2288,6 +2297,12 @@ Verb *Verb::_base_verbs[] = {
N_("Select all objects or all nodes"), GTK_STOCK_SELECT_ALL),
new EditVerb(SP_VERB_EDIT_SELECT_ALL_IN_ALL_LAYERS, "EditSelectAllInAllLayers", N_("Select All in All La_yers"),
N_("Select all objects in all visible and unlocked layers"), INKSCAPE_ICON("edit-select-all-layers")),
+ new EditVerb(SP_VERB_EDIT_SELECT_SAME_FILL_STROKE, "EditSelectSameFillStroke", N_("S_ame Fill and Stroke"),
+ N_("Select all objects with the same fill and stroke as the selected objects"), GTK_STOCK_SELECT_ALL),
+ new EditVerb(SP_VERB_EDIT_SELECT_SAME_FILL, "EditSelectSameFill", N_("Same _Fill"),
+ N_("Select all objects with the same fill as the selected objects"), GTK_STOCK_SELECT_ALL),
+ new EditVerb(SP_VERB_EDIT_SELECT_SAME_STROKE, "EditSelectSameStroke", N_("Same _Stroke"),
+ N_("Select all objects with the same stroke as the selected objects"), GTK_STOCK_SELECT_ALL),
new EditVerb(SP_VERB_EDIT_INVERT, "EditInvert", N_("In_vert Selection"),
N_("Invert selection (unselect what is selected and select everything else)"), INKSCAPE_ICON("edit-select-invert")),
new EditVerb(SP_VERB_EDIT_INVERT_IN_ALL_LAYERS, "EditInvertInAllLayers", N_("Invert in All Layers"),