summaryrefslogtreecommitdiff
path: root/gtk/gtkstock.h
Commit message (Collapse)AuthorAgeFilesLines
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* Fixed referenced images for GTK_STOCK_INDENTSebastian Pölsterl2011-10-151-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=661780
* docs: Fixes for icon renamingBenjamin Otte2011-03-291-1/+1
| | | | Fixes up breakage from 39d4207ab7ecedc0fce2e65478dbd5d152e23b65
* Remove gtktypeutils altogetherMatthias Clasen2011-01-041-1/+14
| | | | | | Based on patches by Javier Jardón. https://bugzilla.gnome.org/show_bug.cgi?id=629955
* docs: Further fix GtkStock documentationCarl-Anton Ingmarsson2010-09-011-2/+2
| | | | | | | | | Some icons were left out from the commit 9688665334db1fe451a5141a0b1c241f09fc49d0 https://bugzilla.gnome.org/show_bug.cgi?id=628308 Signed-off-by: Javier Jardón <jjardon@gnome.org>
* Fix GtkStock documentationMatthias Clasen2010-09-011-92/+92
| | | | | After the big icon rename, all the links in the docs have to be updated, and we need to copy the right icons.
* Document that the GTK_STOCK_FILE label is newMatthias Clasen2010-08-251-0/+2
|
* gtkstock: Adding a File label stock item.Ted Gould2010-07-191-1/+1
| | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=622658
* Remove all traces of GDK_PIXBUF/GTK_DISABLE_SINGLE_INCLUDESMichael Natterer2010-05-031-1/+1
| | | | ...and disallow inclusion of individual files unconditionally.
* Move documentation to inline comments: GtkStockJavier Jardón2009-11-281-12/+845
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=597865
* Use a better caps lock warning iconMatthias Clasen2009-01-051-0/+1
| | | | svn path=/trunk/; revision=22070
* Bug 384940 – handle rejecting jobs and authentication meaningfullyMatthias Clasen2008-07-151-0/+1
| | | | | | | | | | | | | | | | | | | | Patch by Marek Kasik, icons by Mike Langlie: * gtk/gtk.symbols: * gtk/gtkprintbackend.h: * gtk/gtkprinter.[hc]: Add new paused and accepting-jobs properties and getters/setters. * gtk/gtkstock.h: * gtk/gtkiconfactory.c: * gtk/Makefile.am: * gtk/stock-icons/{16,24}/gtk-print-paused.{png,svg}: New icon. * modules/printbackends/cups/gtkprintbackendcups.c: * gtk/gtkprintunixdialog.c: Handle paused and job-rejecting printers. svn path=/trunk/; revision=20838
* Revert name changeCody Russell2008-07-011-1/+1
| | | | svn path=/trunk/; revision=20724
* Practically everything changed.Cody Russell2008-06-301-1/+1
| | | | | | | | | | | | | 2008-06-30 Cody Russell <bratsche@gnome.org> * Practically everything changed. Change all references of GIMP Toolkit (and variations of it) to GTK+ Toolkit, showing no mercy at all to our beloved ancestry. (#540529) svn path=/trunk/; revision=20709
* deprecate GtkDestroyNotify.Michael Natterer2008-06-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 2008-06-18 Michael Natterer <mitch@imendio.com> * gtk/gtktypeutils.h: deprecate GtkDestroyNotify. * gtk/gtkactiongroup.[ch] * gtk/gtkcombobox.[ch] * gtk/gtkcontainer.[ch] * gtk/gtkliststore.[ch] * gtk/gtkmain.[ch] * gtk/gtkmenu.c * gtk/gtkstock.[ch] * gtk/gtktreedatalist.[ch] * gtk/gtktreemodelfilter.[ch] * gtk/gtktreemodelsort.[ch] * gtk/gtktreeprivate.h * gtk/gtktreeselection.[ch] * gtk/gtktreesortable.[ch] * gtk/gtktreestore.[ch] * gtk/gtktreeview.[ch] * gtk/gtktreeviewcolumn.[ch]: s/GtkDestroyNotify/GDestroyNotify/g. svn path=/trunk/; revision=20448
* whitespace cleanup: remove trailing whitespace and excess newlines andMichael Natterer2008-05-281-1/+1
| | | | | | | | | | | 2008-05-28 Michael Natterer <mitch@imendio.com> * gtk/gtk*.h: whitespace cleanup: remove trailing whitespace and excess newlines and sprinkled some newlines where needed. Zero code or formatting changes included. svn path=/trunk/; revision=20225
* define __GTK_H_INSIDE__ around including all other headers.Michael Natterer2008-05-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-05-28 Michael Natterer <mitch@imendio.com> * gtk/gtk.h: define __GTK_H_INSIDE__ around including all other headers. * gtk/gtktypebuiltins.h.template * gtk/gtkversion.h.in * gtk/gtk*.h: add single-include guards that #error out if GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is included individually. * gtk/gtkprintbackend.h * gtk/gtkprinter-private.h * gtk/gtktextlayout.h * gtk/gtktexttagprivate.h * gtk/gtktexttypes.h * gtk/gtktreedatalist.h: include <gtk/gtk.h> instead of individual headers in these private or semi-private headers. * gtk/gtkimmodule.h: also here because it's not in gtk.h. * gtk/gtkpagesetupunixdialog.h * gtk/gtkprinter.h * gtk/gtkprintjob.h * gtk/gtkprintunixdialog.h: likewise in the gtkunixprint headers. * gtk/gtkclist.h * gtk/gtkcombo.h * gtk/gtkctree.h * gtk/gtkfilesel.h * gtk/gtkitemfactory.h * gtk/gtklist.h * gtk/gtklistitem.h * gtk/gtkoldeditable.h * gtk/gtkoptionmenu.h * gtk/gtkpixmap.h * gtk/gtkpreview.h * gtk/gtksignal.h * gtk/gtktipsquery.h: whenever possible, include only <gtk/gtk.h> instead of individual headers in these deprecated headers. They don't get included at all when GTK_DISABLE_DEPRECATED is defined, so if an app needs them anyway, it must undef GTK_DISABLE_DEPRECATED and include them individually, which should continue to work. * gtk/gtkclist.c: include "gtkctree.h" because of the change above. svn path=/trunk/; revision=20221
* Apply a patch by Marek Kasik <mkasik@redhat.com> to display more printerMatthias Clasen2008-05-051-0/+3
| | | | | | | | | | | | | | | | | | | 2008-05-05 Matthias Clasen <mclasen@redhat.com> Apply a patch by Marek Kasik <mkasik@redhat.com> to display more printer status information in the print dialog. * modules/printbackends/cups/gtkprintbackendcups.c: Translate printer-state-reasons into suitable messages and icons. * gtk/stock-icons/16/gtk-print-error.{svg,png}: * gtk/stock-icons/16/gtk-print-report.{svg,png}: * gtk/stock-icons/16/gtk-print-warning.{svg,png}: * gtk/Makefile.am: * gtk/gtkstock.h: New stock icons to display printer state. svn path=/trunk/; revision=20076
* Move GtkTranslateFunc to gtktypeutils.h so we can completely deprecateJohan Dahlin2008-03-061-1/+1
| | | | | | | | | | | | | | | | | | | 2008-03-06 Johan Dahlin <jdahlin@async.com.br> * gtk/gtkitemfactory.h: * gtk/gtktypeutils.h: Move GtkTranslateFunc to gtktypeutils.h so we can completely deprecate gtkitemfactory.h. * gtk/gtkactiongroup.h: * gtk/gtkstock.h: Do not include gtkitemfactory.h directly, instead include gtktypeutils.h * README.in: Add a note describing this slight incompatible change svn path=/trunk/; revision=19721
* 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
* Add labels for page orientations, also add the fourth one. (#339589)Matthias Clasen2006-05-161-0/+1
| | | | | | | | | | | | | | 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.
* Merge the gtk-printing branch. For more detailed ChangeLog entries, seeAlexander Larsson2006-04-211-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-04-21 Alexander Larsson <alexl@redhat.com> Merge the gtk-printing branch. For more detailed ChangeLog entries, see the branch. * .cvsignore: * Makefile.am: * configure.in: * docs/tools/widgets.c: * gtk+-unix-print-2.0.pc.in: * gtk/Makefile.am: * gtk/gen-paper-names.c: * gtk/gtk.h: * gtk/gtk.symbols: * gtk/gtkenums.h: * gtk/gtkiconfactory.c: * gtk/gtkmarshalers.list: * gtk/gtkpagesetup.[ch]: * gtk/gtkpagesetupunixdialog.[ch]: * gtk/gtkpapersize.[ch]: * gtk/gtkprint-win32.[ch]: * gtk/gtkprintbackend.[ch]: * gtk/gtkprintcontext.[ch]: * gtk/gtkprinter-private.h: * gtk/gtkprinter.[ch]: * gtk/gtkprinteroption.[ch]: * gtk/gtkprinteroptionset.[ch]: * gtk/gtkprinteroptionwidget.[ch]: * gtk/gtkprintjob.[ch]: * gtk/gtkprintoperation-private.h: * gtk/gtkprintoperation-unix.c: * gtk/gtkprintoperation-win32.c: * gtk/gtkprintoperation.[ch]: * gtk/gtkprintsettings.[ch]: * gtk/gtkprintunixdialog.[ch]: * gtk/paper_names.c: * gtk/paper_names_offsets.c: Platform independent printing API and implementations for unix and windows. * gtk/gtkstock.h: * gtk/stock-icons/24/gtk-orientation-landscape.png: * gtk/stock-icons/24/gtk-orientation-portrait.png: * gtk/stock-icons/24/gtk-orientation-reverse-landscape.png: Add stock icons for page orientation. * modules/Makefile.am: * modules/printbackends/Makefile.am: * modules/printbackends/cups/Makefile.am: * modules/printbackends/cups/gtkcupsutils.[ch]: * modules/printbackends/cups/gtkprintbackendcups.[ch]: * modules/printbackends/cups/gtkprintercups.[ch]: Cups printing backend for unix. * modules/printbackends/lpr/Makefile.am: * modules/printbackends/lpr/gtkprintbackendlpr.[ch]: lpr printing backend for unix. * modules/printbackends/pdf/Makefile.am: * modules/printbackends/pdf/gtkprintbackendpdf.[ch]: print-to-pdf printing backend for unix. * tests/.cvsignore: * tests/Makefile.am: * tests/print-editor.c: Test application for printing. * gdk/gdk.symbols: * gdk/win32/gdkevents-win32.c: * gdk/win32/gdkwin32.h: Add gdk_win32_set_modal_dialog_libgtk_only so that we can pump the mainloop while displaying a win32 common dialog. * gdk/directfb/Makefile.am: Whitespace cleanup.
* Construct the "Select All" menuitem from stock.Matthias Clasen2005-08-291-0/+1
| | | | | | | | | | | | | | | 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 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.
* 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.