summaryrefslogtreecommitdiffstats
path: root/src/verbs.cpp
diff options
context:
space:
mode:
authorEric Greveson <eric@greveson.co.uk>2013-07-03 22:00:06 +0000
committerEric Greveson <eric@greveson.co.uk>2013-07-03 22:00:06 +0000
commit1c75594f5c37e86dec195ec1975254315ef180e9 (patch)
treea2ef00ceb7bd72b60c61c61ece4dcfe413fac9f5 /src/verbs.cpp
parentModified dbus interface so that it works in console mode (--dbus-listen) (diff)
downloadinkscape-1c75594f5c37e86dec195ec1975254315ef180e9.tar.gz
inkscape-1c75594f5c37e86dec195ec1975254315ef180e9.zip
Changed dbus interface to treat 'division' like other boolops, with a new
return type for selection_combine to support this (array of string). This also fixes a bug with not setting the error flag when returning NULL from this method. Refactored some more selection verbs to allow use in no-GUI mode. (bzr r12387.1.5)
Diffstat (limited to 'src/verbs.cpp')
-rw-r--r--src/verbs.cpp37
1 files changed, 18 insertions, 19 deletions
diff --git a/src/verbs.cpp b/src/verbs.cpp
index 6187cfb4c..fed9622fb 100644
--- a/src/verbs.cpp
+++ b/src/verbs.cpp
@@ -1089,6 +1089,24 @@ void SelectionVerb::perform(SPAction *action, void *data)
case SP_VERB_SELECTION_SLICE:
sp_selected_path_slice(selection, dt);
break;
+ case SP_VERB_SELECTION_TO_FRONT:
+ sp_selection_raise_to_top(selection, dt);
+ break;
+ case SP_VERB_SELECTION_TO_BACK:
+ sp_selection_lower_to_bottom(selection, dt);
+ break;
+ case SP_VERB_SELECTION_RAISE:
+ sp_selection_raise(selection, dt);
+ break;
+ case SP_VERB_SELECTION_LOWER:
+ sp_selection_lower(selection, dt);
+ break;
+ case SP_VERB_SELECTION_GROUP:
+ sp_selection_group(selection, dt);
+ break;
+ case SP_VERB_SELECTION_UNGROUP:
+ sp_selection_ungroup(selection, dt);
+ break;
default:
handled = false;
break;
@@ -1107,25 +1125,6 @@ void SelectionVerb::perform(SPAction *action, void *data)
g_assert(dt->_dlg_mgr != NULL);
switch (reinterpret_cast<std::size_t>(data)) {
- case SP_VERB_SELECTION_TO_FRONT:
- sp_selection_raise_to_top(dt);
- break;
- case SP_VERB_SELECTION_TO_BACK:
- sp_selection_lower_to_bottom(dt);
- break;
- case SP_VERB_SELECTION_RAISE:
- sp_selection_raise(dt);
- break;
- case SP_VERB_SELECTION_LOWER:
- sp_selection_lower(dt);
- break;
- case SP_VERB_SELECTION_GROUP:
- sp_selection_group(dt);
- break;
- case SP_VERB_SELECTION_UNGROUP:
- sp_selection_ungroup(dt);
- break;
-
case SP_VERB_SELECTION_TEXTTOPATH:
text_put_on_path();
break;