- {
- struct iconmap
- {
- const gchar *gtk_id;
- gchar *pspp_id;
- };
-
- /* We have our own icons for some things.
- But we want the Stock Item to be identical to the Gtk standard
- 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_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])];
- int i;
-
- for (i = 0; i < sizeof (map) / sizeof (map[0]); ++i)
- {
- gtk_stock_lookup (map[i].gtk_id, &customised[i]);
- customised[i].stock_id = map[i].pspp_id;
- }
-
-
-
- gtk_stock_add (customised, sizeof (map) / sizeof (map[0]));
- }
-
- {
- /* Create our own "pspp-stock-reset" item, using the
- GTK_STOCK_REFRESH icon set */
- GtkStockItem items[2] = {
- {"pspp-stock-reset", N_("_Reset"), 0, 0, PACKAGE},
- {"pspp-stock-select", N_("_Select"), 0, 0, PACKAGE}
- };
-
- gtk_stock_add (items, 2);
-
- gtk_icon_factory_add (factory, "pspp-stock-reset",
- gtk_icon_factory_lookup_default (GTK_STOCK_REFRESH)
- );