summaryrefslogtreecommitdiff
path: root/gtk/gtkstock.c
Commit message (Collapse)AuthorAgeFilesLines
* Bug 503071 – Application direction changes to right to left even ifBehdad Esfahbod2008-06-111-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | 2008-06-11 Behdad Esfahbod <behdad@gnome.org> Bug 503071 – Application direction changes to right to left even if theres no translation * configure.in: Bump glib requirement. * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): * gtk/gtkactiongroup.c (dgettext_swapped): * gtk/gtkbuilder.c (gtk_builder_class_init): * gtk/gtkbuilderparser.c (_dpgettext), (_gtk_builder_parser_translate): * gtk/gtkfilechooserdefault.c (list_size_data_func): * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems): * gtk/gtkintl.h: * gtk/gtkmain.c (setlocale_initialization), (do_pre_parse_initialization), (gettext_initialization): * gtk/gtkstock.c (gtk_stock_lookup), (sgettext_swapped): Use g_dgettext() and g_dngettext(). svn path=/trunk/; revision=20358
* Bug 503071 - Application direction changes to right to left even if theres14:27:34 Tim Janik2008-05-201-2/+2
| | | | | | | | | | | 2008-05-20 14:27:34 Tim Janik <timj@imendio.com> * reverted recent unapproved changes by Yair Hershkovitz, regarding: Bug 503071 - Application direction changes to right to left even if theres no translation. svn path=/trunk/; revision=20116
* call g_i18n_init() in gettext_initialization(). do gettext_initializationYair Hershkovitz2008-05-111-2/+2
| | | | | | | | | | | | | | | | | | | | 2008-05-11 Yair Hershkovitz <yairhr@gmail.com> * gtk/gtkmain.c: call g_i18n_init() in gettext_initialization(). do gettext_initialization only once. * gtk/gtkbuilderparser.c: use glib i18n api. removed dpgettext() as it duplicates g_dpgettext() and added _g_dpgettext() to wrap g_dpgettext with the extended functionality that was in the removed dpgettext(). * gtk/gtkaccellabelc: * gtk/gtkstock.c: * gtk/gtkimmulticontext.c: * gtk/gtkactiongroup.c: * gtk/gtkintl.h: use glib i18n api. svn path=/trunk/; revision=20091
* gtk/Makefile.am (STOCK_ICONS) gtk/stock-icons/16/gtk-page-setup.png addedSven Neumann2008-02-181-0/+1
| | | | | | | | | | | | | 2008-02-18 Sven Neumann <sven@gimp.org> * gtk/Makefile.am (STOCK_ICONS) * gtk/stock-icons/16/gtk-page-setup.png * gtk/stock-icons/24/gtk-page-setup.png: added page-setup icons taken from GNOME icon theme. * gtk/gtkstock.[ch]: added GTK_STOCK_PAGE_SETUP. Closes bug #514410. svn path=/trunk/; revision=19614
* Add GTK_STOCK_DISCARD, #158008.Christian Neumair2007-06-071-0/+1
| | | | | | | | 2007-06-07 Christian Neumair <cneumair@gnome.org> * gtk/gtkstock.[ch]: Add GTK_STOCK_DISCARD, #158008. svn path=/trunk/; revision=18075
* Switch over to use glib's new g_hash_table_get_keys() rather than our ownChris Wilson2007-04-111-32/+12
| | | | | | | | | | | | | | | | 2007-04-11 Chris Wilson <chris@chris-wilson.co.uk> * gtk/gtkiconfactory.c (_gtk_icon_factory_list_ids): * gtk/gtkstock.c (gtk_stock_list_ids): Switch over to use glib's new g_hash_table_get_keys() rather than our own static implementation. * gtk/gtkiconfactory.h: Update to return a GList. * configure.in: Bump required version to 2.13.1 svn path=/trunk/; revision=17597
* Add labels for page orientations, also add the fourth one. (#339589)Matthias Clasen2006-05-161-0/+4
| | | | | | | | | | | | | | 2006-05-16 Matthias Clasen <mclasen@redhat.com> * gtk/gtkpagesetupunixdialog.c (populate_dialog): Add labels for page orientations, also add the fourth one. (#339589) * gtk/stock-icons/24/gtk-orientation-reverse-portrait.png: New icon. * gtk/Makefile.am: Add it here. * gtk/gtkstock.[hc]: Add stock items for the page orientations.
* Construct the "Select All" menuitem from stock.Matthias Clasen2005-08-291-1/+2
| | | | | | | | | | | | | | | 2005-08-29 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextview.c (popup_targets_received): * gtk/gtkentry.c (popup_targets_received): Construct the "Select All" menuitem from stock. * gtk/stock-icons/stock_select_all_{16,24}.png: * gtk/stock-icons/Makefile.am: * gtk/gtkiconfactory.c: * gtk/gtkstock.h: * gtk/gtkstock.c: Add a "Select All" stock item. (#78545, Calum Benson)
* Add builtin GtkStockItems for GTK_STOCK_CONNECT and GTK_STOCK_DISCONNECTChristopher Aillon2005-08-291-0/+2
| | | | | | | 2005-08-29 Christopher Aillon <caillon@redhat.com> * gtk/gtkstock.c: Add builtin GtkStockItems for GTK_STOCK_CONNECT and GTK_STOCK_DISCONNECT
* Add some new stock items. (#166480, Kristof Vansant)Matthias Clasen2005-06-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | 2005-06-25 Matthias Clasen <mclasen@redhat.com> Add some new stock items. (#166480, Kristof Vansant) * gtk/stock-icons/stock_fullscreen_16.png: * gtk/stock-icons/stock_fullscreen_24.png: * gtk/stock-icons/stock_leave_fullscreen_16.png: * gtk/stock-icons/stock_leave_fullscreen_24.png: * gtk/stock-icons/stock_info_16.png: * gtk/stock-icons/stock_info_24.png: New icons. * gtk/stock-icons/Makefile.am: Add new icons. * gtk/gtkstock.h: Define names for the new icons. * gtk/gtkstock.c (builtin_items): Register new stock items. * gtk/gtkiconfactory.c (get_default_icons): Register new stock icons.
* 2005-06-10 Matthias Clasen <mclasen@redhat.com>Matthias Clasen2005-06-101-0/+1
| | | | | | | | | | * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_expand): * gtk/gtktoolbar.c (gtk_toolbar_get_show_arrow): * gtk/gtktextview.c (gtk_text_view_get_iter_at_position): * gtk/gtkstock.c (gtk_stock_set_translate_func): * gtk/gtkspinbutton.c (gtk_spin_button_get_adjustment): * gtk/gtkscrolledwindow.h: * gtk/gtkmenushell.c (gtk_menu_shell_get_take_focus):
* Make PLT-reduction work with gcc4, and don't include everything inMatthias Clasen2005-03-201-1/+4
| | | | | | | | | | | | | | | | | | 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.
* remove unused function.Manish Singh2005-02-041-6/+12
| | | | | | | | | | | | | | | Fri Feb 4 14:16:31 2005 Manish Singh <yosh@gimp.org> * gtk/gtkaccelgroup.c (substitute_underscores): remove unused function. * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Add some extra parens for bitop order of operations disambiguiation. * gtk/gtkstock.c: Fix const confusion, make our own copy of the domain when setting a translate function. * tests/testcombo.c: removed unused variable.
* Handle item->translation_domain being NULL. (#166179, Diego Gonzalez)Matthias Clasen2005-02-041-3/+6
| | | | | | | 2005-02-04 Matthias Clasen <mclasen@redhat.com> * gtk/gtkstock.c (gtk_stock_lookup): Handle item->translation_domain being NULL. (#166179, Diego Gonzalez)
* New function which allows to change the function used for translationMatthias Clasen2005-02-031-21/+121
| | | | | | | | | | | | 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 hidden aliases for exported symbols which are used internally in orderMatthias Clasen2004-08-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Aug 9 12:48:04 2004 Matthias Clasen <maclas@gmx.de> Add hidden aliases for exported symbols which are used internally in order to get rid of many PLT entries. (#145519, Arjan van de Ven) * gtk/Makefile.am: Add rules to generate gtk.def and from gtk.symbols, and make make check check the abi with abicheck.sh. (gtk_private_h_sources): Add gtkinternals.h (gtk_built_private_headers): Add gtkalias.h (gtk_extra_sources): Add gtk.symbols (EXTRA_DIST): Add makegtkalias.pl and abicheck.sh * gtk/gtk.symbols: New file. Definition of the GTK+ ABI. The file can be processed by cpp to filter out certain subsets of symbols. * gtk/abicheck.sh: New file. Script to check the actually symbols exported from libgtk-x11.2.0.so against the symbols found in gtk.symbols. * gtk/makegtkalias.pl: New file. Perl script to generate the header containing the alias definitions for internally used exported symbols from a list of symbols. * gtk/gtkinternals.h: New file. An uninstalled header listing symbols which must be exported for some reason and do not appear in any other header. * gtk/*.c: Include gtkalias.h
* Add a number of new stock items. (#102530, #68015, #109811, Jordi Mallach,Matthias Clasen2004-07-121-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 a comment about unused bits.Matthias Clasen2004-05-141-2/+19
| | | | | | | | | | | 2004-05-14 Matthias Clasen <mclasen@redhat.com> * gdk/gdktypes.h (GdkModifierType): Add a comment about unused bits. * gtk/gtkstock.c (real_add, gtk_stock_lookup): Use an unused modifier bit to mark stock item which need to be freed eventually. (#140654, Michal Pasternak, Scott Tsai)
* Fixes #136082 and #135265, patch by Morten Welinder.Federico Mena Quintero2004-03-061-0/+1
| | | | | | | | | | 2004-03-05 Federico Mena Quintero <federico@ximian.com> Fixes #136082 and #135265, patch by Morten Welinder. * configure.in: Use AC_SYS_LARGEFILE. * */*.c: #include <config.h>
* Change the labels of the ZOOM_100 and ZOOM_FIT stock items to "_NormalMatthias Clasen2004-02-051-2/+2
| | | | | | | | | Fri Feb 6 00:51:57 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkstock.c (builtin_items): Change the labels of the ZOOM_100 and ZOOM_FIT stock items to "_Normal Size" and "Best _Fit", to be HIG compliant. (#124080, Mariano Suárez-Alvarez)
* 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.
* Data constness fixes. (#75754)Matthias Clasen2002-12-101-1/+1
|
* Change accelerator from C_ut to Cu_t. (#82747, Paolo Maggi)Owen Taylor2002-09-271-1/+1
| | | | | | Fri Sep 27 15:57:15 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkstock.c (builtin_items): Change accelerator from C_ut to Cu_t. (#82747, Paolo Maggi)
* fix typo to make it compileManish Singh2001-10-311-1/+1
| | | | | | Wed Oct 31 15:31:13 2001 Manish Singh <yosh@gimp.org> * gtk/gtkstock.c: fix typo to make it compile
* Add stock items for most stock icons. (#61757)Matthias Clasen2001-10-311-0/+21
| | | | * gtk/gtkstock.c: Add stock items for most stock icons. (#61757)
* get sizes an icon set can render without falling back to missing imageHavoc Pennington2001-05-251-20/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* handle mnemonics in the stock item labelHavoc Pennington2001-03-221-8/+8
| | | | | | | | | | | | | | | 2001-03-22 Havoc Pennington <hp@pobox.com> * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in the stock item label * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs * gtk/gtkstock.c (builtin_items): add mnemonics where missing * demos/gtk-demo/*.c: Add mnemonics all over the place * gtk/gtklabel.h: mark parse_uline deprecated
* CVS is doing its broken pipe thing, this is more of the previous commitHavoc Pennington2001-02-031-0/+59
| | | | 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/+198
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.