Edit menu buttons
authordanigm <dani@danigm.net>
Sun, 9 May 2010 15:35:01 +0000 (17:35 +0200)
committerdanigm <dani@danigm.net>
Sun, 9 May 2010 15:35:01 +0000 (17:35 +0200)
data/ui/tbo-menu-ui.xml
src/ui-menu.c

index 0be6468..bc5173e 100644 (file)
        <separator/>
        <menuitem name="Quit" action="Quit" />
      </menu>
+     <menu name="EditMenu" action="Edit">
+       <menuitem name="clone" action="CloneObj" />
+       <menuitem name="delete" action="DeleteObj" />
+       <menuitem name="fliph" action="FlipHObj" />
+       <menuitem name="flipv" action="FlipVObj" />
+     </menu>
      <menu name="HelpMenu" action="Help">
          <menuitem name="About" action="About" />
      </menu>
index acf6e87..57272cc 100644 (file)
@@ -61,6 +61,7 @@ static const GtkActionEntry tbo_menu_entries [] = {
     /* Toplevel */
 
     { "File", NULL, N_("_File") },
+    { "Edit", NULL, N_("_Edit") },
     { "Help", NULL, N_("Help") },
 
     /* File menu */
@@ -97,6 +98,21 @@ static const GtkActionEntry tbo_menu_entries [] = {
       N_("Quit"),
       G_CALLBACK (close_cb) },
 
+    /* edit menu */
+
+    { "CloneObj", GTK_STOCK_COPY, N_("Clone"), "<control>d",
+      N_("Clone"),
+      G_CALLBACK (menu_handler) },
+    { "DeleteObj", GTK_STOCK_DELETE, N_("Delete"), "Delete",
+      N_("Delete"),
+      G_CALLBACK (menu_handler) },
+    { "FlipHObj", NULL, N_("Horizontal flip"), "h",
+      N_("Horizontal flip"),
+      G_CALLBACK (menu_handler) },
+    { "FlipVObj", NULL, N_("Vertical flip"), "v",
+      N_("Vertical flip"),
+      G_CALLBACK (menu_handler) },
+
     /* Help menu */
 
     { "About", GTK_STOCK_ABOUT, N_("About"), "",