summaryrefslogtreecommitdiff
path: root/gtk/gtkstock.h
Commit message (Collapse)AuthorAgeFilesLines
* Make PLT-reduction work with gcc4, and don't include everything inMatthias Clasen2005-03-201-7/+2
| | | | | | | | | | | | | | | | | | 2005-03-20 Matthias Clasen <mclasen@redhat.com> Make PLT-reduction work with gcc4, and don't include everything in gdkalias.h: * gtk/grk.symbols: Group symbols by header and source file. * gtk/makegtkalias.pl: Protect definitions by the same preprocessor symbols used to guard the headers. Move the alias declarations to a separate file which is produced when calling makegtkalias.pl -def * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate this file. * gtk/*.c: Include gtkalias.h after the other headers, include gtkaliasdef.c at the bottom. * gtk/*.h: Small cleanups.
* New function which allows to change the function used for translationMatthias Clasen2005-02-031-0/+5
| | | | | | | | | | | | 2005-02-03 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtkstock.h: * gtk/gtkstock.c (gtk_stock_set_translate_func): New function which allows to change the function used for translation stock labels, on a per-domain basis. Use this functionality to switch the GTK+ stock items to use Q_() prefixed msgids. (#166179, Funda Wang)
* Add a number of new stock items. (#102530, #68015, #109811, Jordi Mallach,Matthias Clasen2004-07-121-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Jul 12 00:52:04 2004 Matthias Clasen <maclas@gmx.de> * gtk/stock-icons/Makefile.am: * gtk/stock-icons/stock_about_{16,24}.png: * gtk/stock-icons/stock_connect_{16,24}.png: * gtk/stock-icons/stock_disconnect_{16,24}.png: * gtk/stock-icons/stock_edit_{16,24}.png: * gtk/stock-icons/stock_media_forward_{16,24}.png: * gtk/stock-icons/stock_media_next_{16,24}.png: * gtk/stock-icons/stock_media_pause_{16,24}.png: * gtk/stock-icons/stock_media_play_{16,24}.png: * gtk/stock-icons/stock_media_previous_{16,24}.png: * gtk/stock-icons/stock_media_record_{16,24}.png: * gtk/stock-icons/stock_media_rewind_{16,24}.png: * gtk/stock-icons/stock_media_stop_{16,24}.png: * gtk/gtkstock.h (GTK_STOCK_ABOUT): * gtk/gtkstock.h (GTK_STOCK_CONNECT): * gtk/gtkstock.h (GTK_STOCK_DISCONNECT): * gtk/gtkstock.h (GTK_STOCK_EDIT): * gtk/gtkstock.h (GTK_STOCK_MEDIA_FORWARD): * gtk/gtkstock.h (GTK_STOCK_MEDIA_NEXT): * gtk/gtkstock.h (GTK_STOCK_MEDIA_PAUSE): * gtk/gtkstock.h (GTK_STOCK_MEDIA_PLAY): * gtk/gtkstock.h (GTK_STOCK_MEDIA_PREVIOUS): * gtk/gtkstock.h (GTK_STOCK_MEDIA_RECORD): * gtk/gtkstock.h (GTK_STOCK_MEDIA_REWIND): * gtk/gtkstock.h (GTK_STOCK_MEDIA_STOP): * gtk/gtkiconfactory.c (get_default_icons): * gtk/gtkstock.c (builtin_items): Add a number of new stock items. (#102530, #68015, #109811, Jordi Mallach, Benjamin Otte, Michael Opdenacker)
* Add stock_file_16.png, stock_file_24.png, stock_directory_16.png andMatthias Clasen2004-07-061-0/+2
| | | | | | | | | | | | 2004-07-06 Matthias Clasen <mclasen@redhat.com> * gtk/stock-icons/Makefile.am: Add stock_file_16.png, stock_file_24.png, stock_directory_16.png and stock_directory_24.png. * gtk/gtkstock.h (GTK_STOCK_FILE, GTK_STOCK_DIRECTORY): * gtk/gtkiconfactory.c (get_default_icons): New stock icons as fallbacks for gtkfilechooser. Currently these are the same images as the "new" and "open" items...
* new GTK_STOCK_NETWORK ... gtk/gtkstock.[hc] : ... define ...Hans Breuer2004-01-281-0/+1
| | | | | | | | | | | | | | | | | | 2004-01-28 Hans Breuer <hans@breuer.org> * gtk/stock-icons/stock_network_(16|24).png : new GTK_STOCK_NETWORK ... gtk/gtkstock.[hc] : ... define ... gtk/gtkiconfactory.c : ... register ... gtk/stock-icons/Makefile.am gtk/stock-icons/makefile.msc : ... compile ... * gtk/gtkfilesystemwin32.c : ... and use. Also adapt to recent IFace changes. * gtk/gtk.def : added a bunch of new exported symbols * tests/testfilechooser.c (no_backup_files_filter) : don't crash on filter_info->display_name being NULL * tests/testgtk.c : make testgtk --bench=all work again
* add stock indent, unindent I would have prefered outdent, butJody Goldberg2004-01-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | 2004-01-05 Jody Goldberg <jody@gnome.org> * gtk/gtkiconfactory.c (get_default_icons) : add stock indent, unindent I would have prefered outdent, but compatibility seems more important. * gtk/gtkstock.c (builtin_items) : ditto. * gtk/gtkstock.h : ditto. * gtk/stock-icons/Makefile.am : ditto. * gtk/stock-icons/stock_text_indent_16.png : * gtk/stock-icons/stock_text_indent_24.png : * gtk/stock-icons/stock_text_unindent_16.png : * gtk/stock-icons/stock_text_unindent_24.png : from gnome-icon-theme 2003-12-18 Jody Goldberg <jody@gnome.org> * gtk/gtkicontheme.c (gtk_icon_theme_lookup_icon)) : Add a sanity test to ensure that the base hicolor theme is installed. Silently failing to produce icons that apps assume exist in the theme seems like a bad idea.
* use SWP_NOACTIVATE in gdk_window_set_keep_(above|below) to make DND workHans Breuer2004-01-041-0/+1
| | | | | | | | | | | | | | | | | | | | 2004-01-04 Hans Breuer <hans@breuer.org> * gdk/win32/gdkwindow-win32.c : use SWP_NOACTIVATE in gdk_window_set_keep_(above|below) to make DND work again. Thanks to Alif Wahid for noticing. * gdk/gdk.def : update externals * gtk/gtkfilesystemwin32.c : adapt to GtkFileSystemIFace changes * gtk/gtk-stock.[hc] gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am gtk/stock-icons/makefile.msc : gtk/stock-icons/stock_harddisk_16.png gtk/stock-icons/stock_harddisk_24.png Harddisk stock icons for file system implementations. Beside FLOPPY and CDROM there is now HARDDISK, probably some GTK_STOCK_NETWORK would be useful, but I could not find one.
* Add authentication icon.Matthias Clasen2003-07-181-0/+2
|
* Stockify color picker icon. (#89880)Matthias Clasen2002-09-161-0/+1
| | | | | | | | | * gtk/stock-icons/stock_color_picker_25.png: * gtk/stock-icons/Makefile.am (VARIABLES1): * gtk/gtkstock.h (GTK_STOCK_COLOR_PICKER): * gtk/gtkiconfactory.c (get_default_icons): * gtk/gtkcolorsel.c (gtk_color_selection_init): Stockify color picker icon. (#89880)
* Add a special size for drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)Owen Taylor2001-06-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sun Jun 24 21:34:32 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32) * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem with un'reffing wrong list reported by Jeff Franks. * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix. * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND for the default icon. Remove inline XPM. * gtk/gtkstock.h gtk/gtkiconfactory.c: Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new is used for GTK_STOCK_DND, but it is a bit too small.) * gtk/stock-icons/stock_dnd_multiple.png gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs. * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return TRUE when starting a drag. In other cases, we are just observing. (#52995) * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add function to set the icon for a drag from a GdkPixbuf or stock ID. * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}): Likewise, for drag sources. * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon. (Now should be done using the stock system.)
* Rename to the more correct gtk-go-up.Alexander Larsson2001-05-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | 2001-05-27 Alexander Larsson <alla@lysator.liu.se> * gtk/gtkstock.h (GTK_STOCK_GO_UP): Rename to the more correct gtk-go-up. * gtk/stock-icons/stock_menu_sort_ascending.png: Added new file. * gtk/stock-icons/stock_menu_sort_descending.png: Changed to show descending instead of ascending. * gtk/gtkiconfactory.c: Added menu size icon to sort ascending. * gtk/stock-icons/Makefile.am: Added stock_menu_sort_ascending.png. * gtk/gtkseparatormenuitem.c: Use correct typenames.
* fix so that default icons are created if you call gtk_stock_list_ids()Havoc Pennington2001-05-251-2/+1
| | | | | | | | | | 2001-05-25 Havoc Pennington <hp@redhat.com> * gtk/gtkiconfactory.c: fix so that default icons are created if you call gtk_stock_list_ids() * demos/gtk-demo/stock_browser.c (create_model): sort stock items in list
* get sizes an icon set can render without falling back to missing imageHavoc Pennington2001-05-251-11/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-05-25 Havoc Pennington <hp@redhat.com> * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon set can render without falling back to missing image icon * gtk/gtktextview.c (gtk_text_view_size_request): request full size of text, instead of random values * gtk/gtktreeview.c (gtk_tree_view_size_request): request full size of tree view, instead of random values * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback image in an appropriate size * gtk/gtkstock.h: Rename the stock items including _BUTTON_, etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/ Throughout: fix GTK_STOCK_BUTTON_ instances * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h, gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am: Add a bunch of new stock items/icons * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func): new function, convenience for inserting columns with a data func * gtk/gtkiconfactory.c: keep a list of all existing icon factories (_gtk_icon_factory_list_ids): use list of all factories to generate a list of all known IDs * gtk/gtkstock.c (gtk_stock_list_ids): replace gtk_stock_list_items() with a function that returns all IDs known including those for GtkIconFactory.
* new function, turns off decorations for a window.Havoc Pennington2001-03-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-03-07 Havoc Pennington <hp@redhat.com> * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns off decorations for a window. * demos/gtk-demo/button_box.c (create_bbox): adapt to button box changes * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function to get location of PangoLayout inside the label, closes #51198 * gtk/testgtk.c (create_bbox): fix up button box usage * gtk/testcalendar.c (create_calendar): fix up button box usage * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage * gtk/gtkhbbox.h: deprecations * gtk/gtkvbbox.h: deprecations * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to emulate deprecated gtk_button_box_get_spacing * gtk/gtkbbox.h: deprecate some useless functions, remove entirely the "set global default" functions (struct _GtkButtonBox): remove "spacing" field, use the one from GtkBox base class * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to render the icon, return the missing image icon. * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing image icon if the load fails. * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use when no image is found; should be the Netscape "missing image" icon eventually but for now is a random image * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the role for the session manager * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
* CVS is doing its broken pipe thing, this is more of the previous commitHavoc Pennington2001-02-031-2/+2
| | | | 2001-02-02 Havoc Pennington <hp@redhat.com>
* Fix copyrightsHavoc Pennington2000-10-041-1/+1
| | | | | | | | | 2000-10-04 Havoc Pennington <hp@redhat.com> * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Fix copyrights * demos/testpixbuf.c: add inline pixbuf test
* Move more text widget headers into the private header listHavoc Pennington2000-09-261-0/+89
2000-09-26 Havoc Pennington <hp@redhat.com> * gtk/Makefile.am (gtk_private_h_sources): Move more text widget headers into the private header list * Makefile.am (pkgconfig_DATA): install pkg-config files * configure.in: add pkg-config files * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate outstanding icon caches on theme change. * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three important types: (GtkIconSource): Specification for creating a pixbuf appropriate for a direction/state/size triplet from a source pixbuf or filename (GtkIconSet): List of GtkIconSource objects that are used to create the "same" icon (e.g. an OK button icon), and cache for rendered icons (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look up the icon set for a given stock ID. GTK maintains a stack of GtkIconFactory to search, and applications or libraries can add additional icon factories on top of the stack * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse the set of GtkIconSource specified for a given stock ID into a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the RcStyle, under the specified stock ID. * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function render_icon used to derive a GdkPixbuf from a GtkIconSource. This allows people to theme how prelight, insensitive, etc. are done. (gtk_style_lookup_icon_set): Look up a stock ID in the list of icon factories for a style, and return the resulting icon set if any. (gtk_style_render_icon): Render an icon using the render_icon method in the GtkStyleClass. * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): Use the style for a given widget to look up a stock ID, get the icon set, and render an icon using the render_icon method of the style * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type (contains information about a stock item), the built-in stock item IDs, and functions to add/lookup stock items. * gtk/stock-icons/*: Stock icons that come with GTK * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns a button based on a GtkStockItem (gtk_button_new_accel): Takes a uline string and accel group, and installs the accelerator. * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic image-display widget.