summaryrefslogtreecommitdiff
path: root/gtk/gtkicontheme.c
Commit message (Collapse)AuthorAgeFilesLines
* Go back to not scaling up at all. Less magic.Matthias Clasen2004-10-051-1/+1
| | | | | | | 2004-10-05 Matthias Clasen <mclasen@redhat.com> * gtk/gtkicontheme.c (icon_info_ensure_scale_and_pixbuf): Go back to not scaling up at all. Less magic.
* Make the code work as intended for unthemed icons; don't scale them up tooMatthias Clasen2004-10-051-3/+4
| | | | | | | | | | 2004-10-04 Matthias Clasen <mclasen@redhat.com> * gtk/gtkicontheme.c (icon_info_ensure_scale_and_pixbuf): Make the code work as intended for unthemed icons; don't scale them up too much. Allow to scale them down, and do so exactly. (#154142, Ross Burton) (gtk_icon_info_load_icon): Amend docs.
* Applied patch from Olivier Andrieu to fix bug #150440.Manish Singh2004-08-181-2/+2
| | | | | | | | | | Wed Aug 18 08:31:17 2004 Manish Singh <yosh@gimp.org> * gtk/gtkiconview.c: Applied patch from Olivier Andrieu to fix bug #150440. * gtk/gtkicontheme.c (gtk_icon_theme_init): xdg_data_dirs should match constness attributes of g_get_system_data_dirs ().
* Look up icon themes in the directories specified in the icon theme spec:Matthias Clasen2004-08-171-10/+17
| | | | | | | | | 2004-08-17 Matthias Clasen <mclasen@redhat.com> * gtk/gtkicontheme.c (gtk_icon_theme_init): Look up icon themes in the directories specified in the icon theme spec: $HOME/.icons, $XDG_DATA_DIRS/icons, /usr/share/pixmaps. Note that GTK+ used to also look in $GTK_DATA_DIR/icons, $GTK_DATA_DIR/pixmaps and /usr/share/icons. (#148694)
* Doc update.Matthias Clasen2004-08-161-3/+3
| | | | | | | | | | | | 2004-08-16 Matthias Clasen <mclasen@redhat.com> * gtk/gtkwidget.c (gtk_widget_render_icon): Doc update. * gtk/gtkiconfactory.c (render_icon_name_pixbuf): When the size is -1, use the available size closest to 48. (#150147) * gtk/gtkicontheme.c (gtk_icon_theme_get_icon_sizes): Actually return a pointer to the beginning of the sizes array, not the end.
* Add hidden aliases for exported symbols which are used internally in orderMatthias Clasen2004-08-091-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Don't leak the file contents.Matthias Clasen2004-08-091-1/+3
| | | | | | | Mon Aug 9 00:28:34 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkicontheme.c (load_svg_at_size): Don't leak the file contents.
* Add missing parens. (#149190, Morten Welinder)Matthias Clasen2004-08-031-1/+1
| | | | | | | Tue Aug 3 14:50:14 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkicontheme.c (add_size): Add missing parens. (#149190, Morten Welinder)
* Remove trailing commas from enumerations. (#148035)Matthias Clasen2004-07-211-1/+1
| | | | | | | | | | | | | Tue Jul 20 22:26:29 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkfilechooserutils.h: * gtk/gtktoolbutton.c: * gtk/gtktoolbar.c: * gtk/gtkicontheme.c: * gtk/gtkcalendar.c: * demos/gtk-demo/ui_manager.c: * demos/gtk-demo/appwindow.c: Remove trailing commas from enumerations. (#148035)
* Support named themed window icons.Matthias Clasen2004-07-171-1/+72
|
* Don't leak no_svg_filename. (#147399, Kjartan Maraas)Matthias Clasen2004-07-141-1/+1
| | | | | | | Tue Jul 13 21:53:08 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkicontheme.c (free_unthemed_icon): Don't leak no_svg_filename. (#147399, Kjartan Maraas)
* Handle accel_closure being NULL on an accel label. (#139641, SamMatthias Clasen2004-06-021-1/+1
| | | | | | | | | | | | | | Tue Jun 1 22:45:42 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkmenu.c (get_accel_path): Handle accel_closure being NULL on an accel label. (#139641, Sam Stephenson, patch by Michael Natterer) Tue Jun 1 22:19:55 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkicontheme.c (theme_subdir_load): Prevent icon lookup finding icons in the wrong prefix. (#143328, Mark McLoughlin)
* Update libpng and libjpeg URLs, remove note about building without sinceOwen Taylor2004-04-191-2/+2
| | | | | | | | | | | | | Mon Apr 19 17:59:17 2004 Owen Taylor <otaylor@redhat.com> * INSTALL.in: Update libpng and libjpeg URLs, remove note about building without since that's not the normal case. Sun Apr 11 09:45:11 2004 Owen Taylor <otaylor@redhat.com> * gtk/gtkicontheme.c (load_themes): Fix a couple of typos in handling of SVG/non-SVG unthemed icons.
* hu Feb 26 15:43:43 2004 Owen Taylor <otaylor@redhat.com>Owen Taylor2004-02-261-1/+1
| | | | | | | | | | | | | | | | | | | * gtk/gtkstyle.[ch]: Export insertion cursor drawing functionality in a simplified form as gtk_draw_insertion_cursor(). (#99031, request from Alex Larsson) * gtk/gtktextdisplay.c gtk/gtkentry.c gtk/gtklabel.c: Adapt to new gtk_draw_insertion_cursor(). * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_class_init) gtk/gtkstyle.c (gtk_style_class_init): Add some missed Since: 2.4. * gtk/gtkiconfactory.c (icon_size_settings_changed) gtk/gtkicontheme.c (do_theme_change) gtk/gtkrc.c (_gtk_rc_context_get_default_font_name) * gtk/gtksettings.c (gtk_settings_notify): _gtk_rc_reset_styles => gtk_rc_reset_styles.
* Add chains to the parent's ::finalize() handler (#134901, Morten Welinder,Matthias Clasen2004-02-221-0/+6
| | | | | | | | | | | | | | | | | | | | Sun Feb 22 03:03:29 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkaction.c: (gtk_action_finalize): * gtk/gtkclipboard.c: (gtk_clipboard_finalize): * gtk/gtkentrycompletion.c: (gtk_entry_completion_class_init), (gtk_entry_completion_finalize): * gtk/gtkfilechooserwidget.c: (gtk_file_chooser_widget_finalize): * gtk/gtkfilesystemmodel.c: (gtk_file_system_model_class_init), (gtk_file_system_model_finalize): * gtk/gtkicontheme.c: (gtk_icon_theme_class_init), (gtk_icon_theme_finalize): * gtk/gtktextchild.c: (gtk_text_child_anchor_finalize): * gtk/gtkuimanager.c: (gtk_ui_manager_class_init), (gtk_ui_manager_finalize): * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_finalize): Add chains to the parent's ::finalize() handler (#134901, Morten Welinder, patch by Jan Arne Petersen)
* Remove an extraneous + 1 (#134015, Torsten Schoenfeld)Owen Taylor2004-02-121-1/+1
| | | | | | | Thu Feb 12 17:59:52 2004 Owen Taylor <otaylor@redhat.com> * gtk/gtkicontheme.c (gtk_icon_theme_get_search_path): Remove an extraneous + 1 (#134015, Torsten Schoenfeld)
* Fixes #134051.Federico Mena Quintero2004-02-111-3/+0
| | | | | | | | | 2004-02-11 Federico Mena Quintero <federico@ximian.com> Fixes #134051. * gtk/gtkicontheme.c (struct _GtkIconInfo): Remove the ref_count field. (icon_info_new): Don't initialize the ref_count field.
* Shift the array correctly. Fixes #134055, patch by Tosten SchoenfeldFederico Mena Quintero2004-02-111-2/+2
| | | | | | | | 2004-02-11 Federico Mena Quintero <federico@ximian.com> * gtk/gtkicontheme.c (gtk_icon_theme_prepend_search_path): Shift the array correctly. Fixes #134055, patch by Tosten Schoenfeld <kaffeetisch@gmx.de>.
* Patch from Christian Neumair to make warning string more translatorOwen Taylor2004-01-221-4/+4
| | | | | | | | | | | | | | | | Thu Jan 22 18:45:26 2004 Owen Taylor <otaylor@redhat.com> * gtk/gtkicontheme.c: Patch from Christian Neumair to make warning string more translator friendly. * gtk/gtktreemodelfilter.h gtkseparatortoolitem.[ch] gtk/gtktoolbar.c: Parameter name fixes to keep gtk-doc happy. * configure.in: Require GLib-2.3.2, version 2.3.2, interface age 0, binary age 302. * NEWS: Organized, added some names.
* add stock indent, unindent I would have prefered outdent, butJody Goldberg2004-01-201-2/+32
| | | | | | | | | | | | | | | | | | | | | | 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.
* Fix typo that used the wrong x/y values for the x1, y1 pointAlexander Larsson2003-12-181-1/+1
| | | | | | | 2003-12-18 Alexander Larsson <alexl@redhat.com> * gtk/gtkicontheme.c (gtk_icon_info_get_embedded_rect): Fix typo that used the wrong x/y values for the x1, y1 point
* === Released 2.3.1 ===Owen Taylor2003-12-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Dec 8 10:54:44 2003 Owen Taylor <otaylor@redhat.com> * === Released 2.3.1 === * NEWS: Updates for 2.3.1 * configure.in: Version 2.3.1, interface age 0, binary age 301. * gtk/gtkmenuitem.c (gtk_menu_item_can_activate_accel): Rename from gtk_menu_item_real_can_activate_accel() to match GTK+ convention, improve comment. * gtk/gtkwidget.c: Document gtk_widget_can_activate_accel(), can ::can-activate-accel signal. * gtk/gtkwidget.c (closure_accel_activate): Fix spelling in comment. * gtk/gtkmenu.c (gtk_menu_real_can_activate_accel): Clean up comment. * gtk/gtkcellview{,menuitem}.[ch]: Move GET_PRIVATE() macros into the .c file. Mon Dec 8 12:09:21 2003 Owen Taylor <otaylor@redhat.com> * gtk/gtkicontheme.c (find_builtin_icon): Fix a missing 'else'. (#128816, Jorn Baayen)
* Don't crash if icon_theme_builtin_icons hasn't been initialized. (#128726,Matthias Clasen2003-12-071-1/+3
| | | | | | | | Sun Dec 7 23:45:40 2003 Matthias Clasen <maclas@gmx.de> * gtk/gtkicontheme.c (gtk_icon_theme_has_icon): Don't crash if icon_theme_builtin_icons hasn't been initialized. (#128726, Diego Gonzalez)
* Use GTK_DATADIR/{icons,pixmaps} instead ofMatthias Clasen2003-11-131-2/+2
| | | | | | | | Thu Nov 13 01:46:32 2003 Matthias Clasen <maclas@gmx.de> * gtk/gtkicontheme.c (gtk_icon_theme_init): Use GTK_DATADIR/{icons,pixmaps} instead of GTK_DATA_PREFIX/{icons,pixmaps}. (#123365, Marco Pesenti Gritti)
* Mark as 2.4 additions.Matthias Clasen2003-11-081-1/+53
| | | | | | | | | | Sat Nov 8 01:50:17 2003 Matthias Clasen <maclas@gmx.de> * gtk/gtkicontheme.c: * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new): * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new): * gtk/gtkfilechooser.c (gtk_file_chooser_[un]select_all): Mark as 2.4 additions.
* new file to build it all ... added to EXTRA_DISTHans Breuer2003-07-201-9/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-07-20 Hans Breuer <hans@breuer.org> * makefile.msc : new file to build it all * Makefile.am : ... added to EXTRA_DIST * gdk/makefile.msc gtk/stock-icons/makefile.msc gtk/makefile.msc.in tests/makefile.msc : updated * gdk/gdk.def gtk/gtk.def : export a bunch of new functions * gtk/gtkbbox.c : use g_return_val_if_fail() if there is a value to return * gtk/gtkfontsel.c gtk/gtkiconfactory.c : static correctness * gtk/gtkicontheme.c : ported to use GTimeVal instead of struct timeval and GTK_DATA_PREFIX instead of GTK_DATADIR * gtk/gtkicontheme.c : use HAVE_LC_MESSAGES * gtk/gtkimmulticontext.c : use gtkprivate.h * gtk/stock-icons/stock_color_picker_25.png gtk/stock-icons/stock_jump_to_rtl_16.png gtk/stock-icons/stock_jump_to_rtl_24.png gtk/stock-icons/stock_redo_rtl_16.png gtk/stock-icons/stock_redo_rtl_24.png gtk/stock-icons/stock_undelete_rtl_16.png gtk/stock-icons/stock_undelete_rtl_24.png gtk/stock-icons/stock_undo_rtl_16.png : gtk/stock-icons/stock_undo_rtl_24.png : readded as binary
* Use g_strfreev() to free mime_types. (#117219, Steve Chaplin)Matthias Clasen2003-07-111-1/+1
| | | | | | | | | | | | | 2003-07-11 Matthias Clasen <maclas@gmx.de> * gtk/gtkicontheme.c (pixbuf_supports_svg): Use g_strfreev() to free mime_types. (#117219, Steve Chaplin) * queryloaders.c (query_module): Handle absolute filenames properly. (#117170, Jens Elkner) * gdk-pixbuf-io.c: Mention that NULL-terminated arrays returned by gdk_pixbuf_format_get_mime_types() and gdk_pixbuf_format_get_extensions() must be freed with g_strfreev().
* Insert cast to fix warning. Assign something to old_value to quiet gccSoeren Sandmann2003-07-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Jul 3 03:13:20 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkpaned.c (gtk_paned_set_child_property): Insert cast to fix warning. Assign something to old_value to quiet gcc * gtk/gtkcalendar.c (start_spinning): gtk_timeout_add->g_timeout_add * gtk/gtkicontheme.c (theme_lookup_icon): Make it compile (remove double semicolon) * gtk/gtktoolbutton.c (gtk_tool_button_class_init): Long comment about properties. (gtk_tool_button_class_init): Improve text for "use_underline" property (gtk_tool_button_create_menu_proxy): Fix up to use_mnemonic based on whether the passed-in label has use_mnemonic set (gtk_tool_button_create_menu_proxy): Split image cloning out in new function. Make that function also handle image with pixbuf storage. (gtk_tool_button_construct_contents): Use gtk_widget_destroy() instead of gtk_container_remove(). (gtk_tool_button_construct_contents): Fix eliding bug * gtk/gtktoolbar.c (gtk_toolbar_finalize): New function. Unref tooltips, pointed out by Morten Welinder (gtk_toolbar_button_press): Make popup_context_menu signal provide coordinates and button number * tests/testtoolbar.c (main): Add new pixbuf toolbutton * tests/apple-red.png: new file
* Implement a loader for named themed icon based on from gnome-desktopOwen Taylor2003-07-021-0/+2535
Wed Jul 2 18:00:56 2003 Owen Taylor <otaylor@redhat.com> * gtk/gtkicontheme.[ch]: Implement a loader for named themed icon based on from gnome-desktop library by Alex Larsson. * gtk/gtkiconthemeparser.[ch]: .ini file parsing code from gnome-desktop. * gtk/gtkiconfactory.[ch]: Add gtk_icon_source_set/get_icon_name() to allow stock icons to be based off of named theme icons. * gtk/gtkiconfactory.c: Rework sources so that the source is *either* a pixbuf, or a filename, or an icon name, instead of the pixbuf/filename mix it was before. Put a workaround for get_pixbuf() so that it can return the filename pixbuf, e.g, for render_icon(). * gtk/gtkiconfactory.c: Make the default setup use themed icons, and add builtin icons to the default icon theme for all the standard pixbufs, so we don't rely on actually having an icon theme on disk. * gtk/gtkrc.c: Add support for @"icon-name" to specify a themed icon for a stock icon source. * tests/Makefile.am test/testicontheme.c: Add a test program from gnome-desktop. * gdk/x11/gdkevents-x11.c gtk/gtksettings.c: Add Net/IconThemeName / gtk-icon-theme-name setting. * gtk/gtkiconfactory.c (ensure_cache_up_to_date): Actually update the icon cache serial so we don't continually * gtk/gtkwidget.c: Fix a couple of references in doc comments to ::direction_set that should have been to ::direction-changed