From d918d8dceaafb3c5e8018fdb2aff875e84f8c865 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Thu, 7 Nov 2013 09:57:54 +0100 Subject: [PATCH] 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 --- src/ui/gui/psppire.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) 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])]; -- 2.30.2