- add_unsized (factory, MISSING_IMAGE_INLINE, GTK_STOCK_MISSING_IMAGE);
-
- add_sized (factory, dialog_error, GTK_ICON_SIZE_DIALOG, GTK_STOCK_DIALOG_ERROR);
- add_sized (factory, dialog_info, GTK_ICON_SIZE_DIALOG, GTK_STOCK_DIALOG_INFO);
- add_sized (factory, dialog_question, GTK_ICON_SIZE_DIALOG, GTK_STOCK_DIALOG_QUESTION);
- add_sized (factory, dialog_warning, GTK_ICON_SIZE_DIALOG, GTK_STOCK_DIALOG_WARNING);
-
- /* dnd size only */
- add_sized (factory, stock_new, GTK_ICON_SIZE_DND, GTK_STOCK_DND);
- add_sized (factory, stock_dnd_multiple, GTK_ICON_SIZE_DND, GTK_STOCK_DND_MULTIPLE);
-
- /* Only have button sizes */
- add_sized (factory, stock_button_apply, GTK_ICON_SIZE_BUTTON, GTK_STOCK_APPLY);
- add_sized (factory, stock_button_cancel, GTK_ICON_SIZE_BUTTON, GTK_STOCK_CANCEL);
- add_sized (factory, stock_button_no, GTK_ICON_SIZE_BUTTON, GTK_STOCK_NO);
- add_sized (factory, stock_button_ok, GTK_ICON_SIZE_BUTTON, GTK_STOCK_OK);
- add_sized (factory, stock_button_yes, GTK_ICON_SIZE_BUTTON, GTK_STOCK_YES);
-
- /* Generic + button sizes */
- add_sized_with_fallback (factory,
- stock_close,
- stock_button_close,
- GTK_ICON_SIZE_BUTTON,
- GTK_STOCK_CLOSE);
-
- /* Generic + menu sizes */
-
- add_sized_with_fallback (factory,
- stock_print_preview,
- stock_menu_print_preview,
- GTK_ICON_SIZE_MENU,
- GTK_STOCK_PRINT_PREVIEW);
-
- add_sized_with_fallback (factory,
- stock_sort_descending,
- stock_menu_sort_descending,
- GTK_ICON_SIZE_MENU,
- GTK_STOCK_SORT_DESCENDING);
-
-
- add_sized_with_fallback (factory,
- stock_sort_ascending,
- stock_menu_sort_ascending,
- GTK_ICON_SIZE_MENU,
- GTK_STOCK_SORT_ASCENDING);
-
-/* Generic size only */
-
- add_unsized (factory, stock_add, GTK_STOCK_ADD);
- add_unsized (factory, stock_align_center, GTK_STOCK_JUSTIFY_CENTER);
- add_unsized (factory, stock_align_justify, GTK_STOCK_JUSTIFY_FILL);
- add_unsized (factory, stock_align_left, GTK_STOCK_JUSTIFY_LEFT);
- add_unsized (factory, stock_align_right, GTK_STOCK_JUSTIFY_RIGHT);
- add_unsized (factory, stock_bottom, GTK_STOCK_GOTO_BOTTOM);
- add_unsized (factory, stock_cdrom, GTK_STOCK_CDROM);
- add_unsized (factory, stock_clear, GTK_STOCK_CLEAR);
- add_unsized (factory, stock_colorselector, GTK_STOCK_SELECT_COLOR);
- add_unsized (factory, stock_convert, GTK_STOCK_CONVERT);
- add_unsized (factory, stock_copy, GTK_STOCK_COPY);
- add_unsized (factory, stock_cut, GTK_STOCK_CUT);
- add_unsized (factory, stock_down_arrow, GTK_STOCK_GO_DOWN);
- add_unsized (factory, stock_exec, GTK_STOCK_EXECUTE);
- add_unsized (factory, stock_exit, GTK_STOCK_QUIT);
- add_unsized (factory, stock_first, GTK_STOCK_GOTO_FIRST);
- add_unsized (factory, stock_font, GTK_STOCK_SELECT_FONT);
- add_unsized (factory, stock_help, GTK_STOCK_HELP);
- add_unsized (factory, stock_home, GTK_STOCK_HOME);
- add_unsized (factory, stock_index, GTK_STOCK_INDEX);
- add_unsized (factory, stock_jump_to, GTK_STOCK_JUMP_TO);
- add_unsized (factory, stock_last, GTK_STOCK_GOTO_LAST);
- add_unsized (factory, stock_left_arrow, GTK_STOCK_GO_BACK);
- add_unsized (factory, stock_new, GTK_STOCK_NEW);
- add_unsized (factory, stock_open, GTK_STOCK_OPEN);
- add_unsized (factory, stock_paste, GTK_STOCK_PASTE);
- add_unsized (factory, stock_preferences, GTK_STOCK_PREFERENCES);
- add_unsized (factory, stock_print, GTK_STOCK_PRINT);
- add_unsized (factory, stock_properties, GTK_STOCK_PROPERTIES);
- add_unsized (factory, stock_redo, GTK_STOCK_REDO);
- add_unsized (factory, stock_refresh, GTK_STOCK_REFRESH);
- add_unsized (factory, stock_remove, GTK_STOCK_REMOVE);
- add_unsized (factory, stock_revert, GTK_STOCK_REVERT_TO_SAVED);
- add_unsized (factory, stock_right_arrow, GTK_STOCK_GO_FORWARD);
- add_unsized (factory, stock_save, GTK_STOCK_FLOPPY);
- add_unsized (factory, stock_save, GTK_STOCK_SAVE);
- add_unsized (factory, stock_save_as, GTK_STOCK_SAVE_AS);
- add_unsized (factory, stock_search, GTK_STOCK_FIND);
- add_unsized (factory, stock_search_replace, GTK_STOCK_FIND_AND_REPLACE);
- add_unsized (factory, stock_spellcheck, GTK_STOCK_SPELL_CHECK);
- add_unsized (factory, stock_stop, GTK_STOCK_STOP);
- add_unsized (factory, stock_text_bold, GTK_STOCK_BOLD);
- add_unsized (factory, stock_text_italic, GTK_STOCK_ITALIC);
- add_unsized (factory, stock_text_strikeout, GTK_STOCK_STRIKETHROUGH);
- add_unsized (factory, stock_text_underline, GTK_STOCK_UNDERLINE);
- add_unsized (factory, stock_top, GTK_STOCK_GOTO_TOP);
- add_unsized (factory, stock_trash, GTK_STOCK_DELETE);
- add_unsized (factory, stock_undelete, GTK_STOCK_UNDELETE);
- add_unsized (factory, stock_undo, GTK_STOCK_UNDO);
- add_unsized (factory, stock_up_arrow, GTK_STOCK_GO_UP);
- add_unsized (factory, stock_zoom_1, GTK_STOCK_ZOOM_100);
- add_unsized (factory, stock_zoom_fit, GTK_STOCK_ZOOM_FIT);
- add_unsized (factory, stock_zoom_in, GTK_STOCK_ZOOM_IN);
- add_unsized (factory, stock_zoom_out, GTK_STOCK_ZOOM_OUT);
-}
-
-/* Sizes */
+ register_stock_icon (factory, GTK_STOCK_DIALOG_AUTHENTICATION);
+ register_stock_icon (factory, GTK_STOCK_DIALOG_ERROR);
+ register_stock_icon (factory, GTK_STOCK_DIALOG_INFO);
+ register_stock_icon (factory, GTK_STOCK_DIALOG_QUESTION);
+ register_stock_icon (factory, GTK_STOCK_DIALOG_WARNING);
+ register_stock_icon (factory, GTK_STOCK_DND);
+ register_stock_icon (factory, GTK_STOCK_DND_MULTIPLE);
+ register_stock_icon (factory, GTK_STOCK_APPLY);
+ register_stock_icon (factory, GTK_STOCK_CANCEL);
+ register_stock_icon (factory, GTK_STOCK_NO);
+ register_stock_icon (factory, GTK_STOCK_OK);
+ register_stock_icon (factory, GTK_STOCK_YES);
+ register_stock_icon (factory, GTK_STOCK_CLOSE);
+ register_stock_icon (factory, GTK_STOCK_ADD);
+ register_stock_icon (factory, GTK_STOCK_JUSTIFY_CENTER);
+ register_stock_icon (factory, GTK_STOCK_JUSTIFY_FILL);
+ register_stock_icon (factory, GTK_STOCK_JUSTIFY_LEFT);
+ register_stock_icon (factory, GTK_STOCK_JUSTIFY_RIGHT);
+ register_stock_icon (factory, GTK_STOCK_GOTO_BOTTOM);
+ register_stock_icon (factory, GTK_STOCK_CDROM);
+ register_stock_icon (factory, GTK_STOCK_CONVERT);
+ register_stock_icon (factory, GTK_STOCK_COPY);
+ register_stock_icon (factory, GTK_STOCK_CUT);
+ register_stock_icon (factory, GTK_STOCK_GO_DOWN);
+ register_stock_icon (factory, GTK_STOCK_EXECUTE);
+ register_stock_icon (factory, GTK_STOCK_QUIT);
+ register_bidi_stock_icon (factory,
+ GTK_STOCK_GOTO_FIRST,
+ GTK_STOCK_GOTO_FIRST "-ltr",
+ GTK_STOCK_GOTO_FIRST "-rtl");
+ register_stock_icon (factory, GTK_STOCK_SELECT_FONT);
+ register_stock_icon (factory, GTK_STOCK_FULLSCREEN);
+ register_stock_icon (factory, GTK_STOCK_LEAVE_FULLSCREEN);
+ register_stock_icon (factory, GTK_STOCK_HARDDISK);
+ register_stock_icon (factory, GTK_STOCK_HELP);
+ register_stock_icon (factory, GTK_STOCK_HOME);
+ register_stock_icon (factory, GTK_STOCK_INFO);
+ register_bidi_stock_icon (factory,
+ GTK_STOCK_JUMP_TO,
+ GTK_STOCK_JUMP_TO "-ltr",
+ GTK_STOCK_JUMP_TO "-rtl");
+ register_bidi_stock_icon (factory,
+ GTK_STOCK_GOTO_LAST,
+ GTK_STOCK_GOTO_LAST "-ltr",
+ GTK_STOCK_GOTO_LAST "-rtl");
+ register_bidi_stock_icon (factory,
+ GTK_STOCK_GO_BACK,
+ GTK_STOCK_GO_BACK "-ltr",
+ GTK_STOCK_GO_BACK "-rtl");
+ register_stock_icon (factory, GTK_STOCK_MISSING_IMAGE);
+ register_stock_icon (factory, GTK_STOCK_NETWORK);
+ register_stock_icon (factory, GTK_STOCK_NEW);
+ register_stock_icon (factory, GTK_STOCK_OPEN);
+ register_stock_icon (factory, GTK_STOCK_PASTE);
+ register_stock_icon (factory, GTK_STOCK_PREFERENCES);
+ register_stock_icon (factory, GTK_STOCK_PRINT);
+ register_stock_icon (factory, GTK_STOCK_PRINT_PREVIEW);
+ register_stock_icon (factory, GTK_STOCK_PROPERTIES);
+ register_bidi_stock_icon (factory,
+ GTK_STOCK_REDO,
+ GTK_STOCK_REDO "-ltr",
+ GTK_STOCK_REDO "-rtl");
+ register_stock_icon (factory, GTK_STOCK_REMOVE);
+ register_stock_icon (factory, GTK_STOCK_REFRESH);
+ register_bidi_stock_icon (factory,
+ GTK_STOCK_REVERT_TO_SAVED,
+ GTK_STOCK_REVERT_TO_SAVED "-ltr",
+ GTK_STOCK_REVERT_TO_SAVED "-rtl");
+ register_bidi_stock_icon (factory,
+ GTK_STOCK_GO_FORWARD,
+ GTK_STOCK_GO_FORWARD "-ltr",
+ GTK_STOCK_GO_FORWARD "-rtl");
+ register_stock_icon (factory, GTK_STOCK_SAVE);
+ register_stock_icon (factory, GTK_STOCK_FLOPPY);
+ register_stock_icon (factory, GTK_STOCK_SAVE_AS);
+ register_stock_icon (factory, GTK_STOCK_FIND);
+ register_stock_icon (factory, GTK_STOCK_FIND_AND_REPLACE);
+ register_stock_icon (factory, GTK_STOCK_SORT_DESCENDING);
+ register_stock_icon (factory, GTK_STOCK_SORT_ASCENDING);
+ register_stock_icon (factory, GTK_STOCK_SPELL_CHECK);
+ register_stock_icon (factory, GTK_STOCK_STOP);
+ register_stock_icon (factory, GTK_STOCK_BOLD);
+ register_stock_icon (factory, GTK_STOCK_ITALIC);
+ register_stock_icon (factory, GTK_STOCK_STRIKETHROUGH);
+ register_stock_icon (factory, GTK_STOCK_UNDERLINE);
+ register_stock_icon (factory, GTK_STOCK_INDENT);
+ register_stock_icon (factory, GTK_STOCK_UNINDENT);
+ register_stock_icon (factory, GTK_STOCK_GOTO_TOP);
+ register_stock_icon (factory, GTK_STOCK_DELETE);
+ register_bidi_stock_icon (factory,
+ GTK_STOCK_UNDELETE,
+ GTK_STOCK_UNDELETE "-ltr",
+ GTK_STOCK_UNDELETE "-rtl");
+ register_bidi_stock_icon (factory,
+ GTK_STOCK_UNDO,
+ GTK_STOCK_UNDO "-ltr",
+ GTK_STOCK_UNDO "-rtl");
+ register_stock_icon (factory, GTK_STOCK_GO_UP);
+ register_stock_icon (factory, GTK_STOCK_FILE);
+ register_stock_icon (factory, GTK_STOCK_DIRECTORY);
+ register_stock_icon (factory, GTK_STOCK_ABOUT);
+ register_stock_icon (factory, GTK_STOCK_CONNECT);
+ register_stock_icon (factory, GTK_STOCK_DISCONNECT);
+ register_stock_icon (factory, GTK_STOCK_EDIT);
+ register_bidi_stock_icon (factory,
+ GTK_STOCK_MEDIA_FORWARD,
+ GTK_STOCK_MEDIA_FORWARD "-ltr",
+ GTK_STOCK_MEDIA_FORWARD "-rtl");
+ register_bidi_stock_icon (factory,
+ GTK_STOCK_MEDIA_NEXT,
+ GTK_STOCK_MEDIA_NEXT "-ltr",
+ GTK_STOCK_MEDIA_NEXT "-rtl");
+ register_stock_icon (factory, GTK_STOCK_MEDIA_PAUSE);
+ register_bidi_stock_icon (factory,
+ GTK_STOCK_MEDIA_PLAY,
+ GTK_STOCK_MEDIA_PLAY "-ltr",
+ GTK_STOCK_MEDIA_PLAY "-rtl");
+ register_bidi_stock_icon (factory,
+ GTK_STOCK_MEDIA_PREVIOUS,
+ GTK_STOCK_MEDIA_PREVIOUS "-ltr",
+ GTK_STOCK_MEDIA_PREVIOUS "-rtl");
+ register_stock_icon (factory, GTK_STOCK_MEDIA_RECORD);
+ register_bidi_stock_icon (factory,
+ GTK_STOCK_MEDIA_REWIND,
+ GTK_STOCK_MEDIA_REWIND "-ltr",
+ GTK_STOCK_MEDIA_REWIND "-rtl");
+ register_stock_icon (factory, GTK_STOCK_MEDIA_STOP);
+ register_stock_icon (factory, GTK_STOCK_INDEX);
+ register_stock_icon (factory, GTK_STOCK_ZOOM_100);
+ register_stock_icon (factory, GTK_STOCK_ZOOM_IN);
+ register_stock_icon (factory, GTK_STOCK_ZOOM_OUT);
+ register_stock_icon (factory, GTK_STOCK_ZOOM_FIT);
+ register_stock_icon (factory, GTK_STOCK_SELECT_ALL);
+ register_stock_icon (factory, GTK_STOCK_CLEAR);
+ register_stock_icon (factory, GTK_STOCK_SELECT_COLOR);
+ register_stock_icon (factory, GTK_STOCK_COLOR_PICKER);
+}
+
+/************************************************************
+ * Icon size handling *
+ ************************************************************/