Added new map entries from Gtk stock items to pspp stock items
authorJohn Darrington <john@darrington.wattle.id.au>
Thu, 7 Nov 2013 08:57:54 +0000 (09:57 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Thu, 7 Nov 2013 18:06:16 +0000 (19:06 +0100)
This method allows us to use our own icons, but all other properties
(labels, translations etc) from the Gtk library.

These missing entries meant that labels were missing from the
syntax editor.

Reported-by: Bastian Diaz
src/ui/gui/psppire.c

index 91640fe9cf0fed7c16e8bb2512c7d4c6ed78b1b7..7013fcfc1ad7affdc57afaf8ca68549486297cc2 100644 (file)
@@ -270,14 +270,17 @@ create_icon_factory (void)
        ones in all other respects.
     */
     const struct iconmap map[] = {
-      {GTK_STOCK_NEW,   "file-new-document"},
-      {GTK_STOCK_QUIT,  "file-quit"},
-      {GTK_STOCK_SAVE,  "file-save-document"},
-      {GTK_STOCK_CUT,   "edit-cut"},
-      {GTK_STOCK_COPY,  "edit-copy"},
-      {GTK_STOCK_PASTE, "edit-paste"},
-      {GTK_STOCK_ABOUT, "help-about"},
-      {GTK_STOCK_PRINT, "file-print-document"}
+      {GTK_STOCK_NEW,    "file-new-document"},
+      {GTK_STOCK_QUIT,   "file-quit"},
+      {GTK_STOCK_SAVE,   "file-save-document"},
+      {GTK_STOCK_CUT,    "edit-cut"},
+      {GTK_STOCK_COPY,   "edit-copy"},
+      {GTK_STOCK_PASTE,  "edit-paste"},
+      {GTK_STOCK_UNDO,   "edit-undo"},
+      {GTK_STOCK_REDO,   "edit-redo"},
+      {GTK_STOCK_DELETE, "edit-delete"},
+      {GTK_STOCK_ABOUT,  "help-about"},
+      {GTK_STOCK_PRINT,  "file-print-document"}
     };
 
     GtkStockItem customised[sizeof (map) / sizeof (map[0])];