From: John Darrington Date: Thu, 7 Nov 2013 08:57:54 +0000 (+0100) Subject: Added new map entries from Gtk stock items to pspp stock items X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d918d8dceaafb3c5e8018fdb2aff875e84f8c865;p=pspp Added new map entries from Gtk stock items to pspp stock items 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 --- diff --git a/src/ui/gui/psppire.c b/src/ui/gui/psppire.c index 91640fe9cf..7013fcfc1a 100644 --- a/src/ui/gui/psppire.c +++ b/src/ui/gui/psppire.c @@ -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])];