Code

add select all, select all in all layers, deselect to selector toolbar
authorbuliabyak <buliabyak@users.sourceforge.net>
Tue, 11 Sep 2007 03:23:08 +0000 (03:23 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Tue, 11 Sep 2007 03:23:08 +0000 (03:23 +0000)
src/widgets/select-toolbar.cpp
src/widgets/toolbox.cpp

index ec7d26851c683ea6a17fdd025e901e1d417123fb..be81617dec3907fbfa27435ddb935dce70a1fa7f 100644 (file)
@@ -372,6 +372,13 @@ void sp_select_toolbox_prep(SPDesktop *desktop, GtkActionGroup* mainActions, GOb
 
     GtkActionGroup* selectionActions = mainActions; // temporary
 
+    act = create_action_for_verb( Inkscape::Verb::get(SP_VERB_EDIT_SELECT_ALL), view, Inkscape::ICON_SIZE_SMALL_TOOLBAR );
+    gtk_action_group_add_action( selectionActions, act );
+    act = create_action_for_verb( Inkscape::Verb::get(SP_VERB_EDIT_SELECT_ALL_IN_ALL_LAYERS), view, Inkscape::ICON_SIZE_SMALL_TOOLBAR );
+    gtk_action_group_add_action( selectionActions, act );
+    act = create_action_for_verb( Inkscape::Verb::get(SP_VERB_EDIT_DESELECT), view, Inkscape::ICON_SIZE_SMALL_TOOLBAR );
+    gtk_action_group_add_action( selectionActions, act );
+
     act = create_action_for_verb( Inkscape::Verb::get(SP_VERB_OBJECT_ROTATE_90_CCW), view, Inkscape::ICON_SIZE_SMALL_TOOLBAR );
     gtk_action_group_add_action( selectionActions, act );
     act = create_action_for_verb( Inkscape::Verb::get(SP_VERB_OBJECT_ROTATE_90_CW), view, Inkscape::ICON_SIZE_SMALL_TOOLBAR );
index 5a74f96060857e560480560c6ca472a2c44beea9..3f9340bc2597725e61ee140435532937907b4e43 100644 (file)
@@ -196,6 +196,10 @@ static struct {
 static gchar const * ui_descr =
         "<ui>"
         "  <toolbar name='SelectToolbar'>"
+        "    <toolitem action='EditSelectAll' />"
+        "    <toolitem action='EditSelectAllInAllLayers' />"
+        "    <toolitem action='EditDeselect' />"
+        "    <separator />"
         "    <toolitem action='ObjectRotate90CCW' />"
         "    <toolitem action='ObjectRotate90' />"
         "    <toolitem action='ObjectFlipHorizontally' />"