summaryrefslogtreecommitdiff
path: root/gtk/gtkicontheme.c
Commit message (Collapse)AuthorAgeFilesLines
* gtk: Fix crasher when loading symbolic iconsBastien Nocera2010-10-301-35/+48
| | | | | | | | | If the style didn't include symbolic colors for either success, warning or error, gtk_icon_info_load_symbolic_for_style() would crash. Instead, make sure we don't try to use the colors if they're not available, and fallback on default colors inside _gtk_icon_info_load_symbolic_internal().
* Make gtk_icon_info_load_symbolic() Take GdkRGBA colors.Carlos Garnacho2010-10-221-51/+97
|
* introspection: Fix some annotation syntaxColin Walters2010-09-291-2/+2
|
* Remove GtkObject completelyMatthias Clasen2010-09-261-0/+1
|
* Tons of transfer annotationsMatthias Clasen2010-09-211-20/+22
|
* Drop Win32 DLL ABI compatibility cruftTor Lillqvist2010-08-301-111/+0
| | | | No need for that any longer as we are changing DLL name.
* Use G_DEFINE_BOXED_TYPEChristian Persch2010-08-181-12/+3
| | | | Bug #627214.
* GtkIconTheme: unseal private pointerJavier Jardón2010-07-131-3/+4
|
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-4/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Fix warning: should pass gboolean*, not gboolean**Javier Jardón2010-06-241-1/+1
|
* Add a variant of gtk_icon_theme_load_symbolic that takes a styleMatthias Clasen2010-06-141-0/+49
| | | | As proposed by Owen in bug 621578 to reduce code duplication.
* Fix up gtk_icon_info_load_symbolic docsMatthias Clasen2010-05-251-7/+8
|
* Doc fixesMatthias Clasen2010-05-011-14/+17
| | | | Correct some Since tags.
* Fix <ulink> tag in previous commitJavier Jardón2010-04-281-1/+1
|
* Support 'symbolic' themed iconsMatthias Clasen2010-04-281-0/+136
| | | | | | | | | | | | | | Add gtk_icon_info_load_symbolic() to load symbolic icons, and theme their background/foreground colours to match the colours used in the theme. Adds the gtk_icon_info_load_symbolic() function, explicit support in GtkImage and GtkCellRendererPixbuf, and test cases for those 2 widgets. With help from Bastien Nocera <hadess@hadess.net> https://bugzilla.gnome.org/show_bug.cgi?id=614711
* [annotations] Add allow-noneJohan Dahlin2010-02-191-5/+5
| | | | | | | | This commit was created using a script that searched for all docstrings containing a parameter and the string 'or %NULL'. Gdk backends and demos excluded as they are not part of a public API https://bugzilla.gnome.org/show_bug.cgi?id=610474
* [introspection] Merge in Gtk-custom.c annotationsColin Walters2009-12-161-9/+9
| | | | | | | | The Gtk-custom.c file in gir-repository contained a number of introspection annotations. Merge those into the GTK source files. Some documentation was moved from the tmpl/ files to accomodate the addition of annotations.
* Add a few more annotations to GtkIconThemeTomeu Vizoso2009-12-161-2/+2
|
* Fix a typoMatthias Clasen2009-08-061-1/+1
| | | | This was reported in bug 586347.
* g_return_if_fail() on icon_name != NULL so we get a warning instead of aMichael Natterer2009-01-221-1/+2
| | | | | | | | | | 2009-01-22 Michael Natterer <mitch@imendio.com> * gtk/gtkicontheme.c (gtk_icon_theme_has_icon): g_return_if_fail() on icon_name != NULL so we get a warning instead of a crash here. svn path=/trunk/; revision=22174
* Bug 557059 – crash when compositing emblems with iconChristian Persch2008-10-201-4/+19
| | | | | | | | | | | | 2008-10-20 Christian Persch <chpe@gnome.org> Bug 557059 – crash when compositing emblems with icon * gtk/gtkicontheme.c: (apply_emblems): Copy the pixbuf before using it with gtk_pixbuf_composite, in case its pixdata is read-only (mmaped from icon cache or builtins). svn path=/trunk/; revision=21690
* gtk/gtk.symbols gtk/makegtkalias.pl gtk/gtkaccelmap.c gtk/gtkfilechooser.cTor Lillqvist2008-08-081-6/+6
| | | | | | | | | | | | | | | | | | | | 2008-08-08 Tor Lillqvist <tml@novell.com> * gtk/gtk.symbols * gtk/makegtkalias.pl * gtk/gtkaccelmap.c * gtk/gtkfilechooser.c * gtk/gtkfilesel.c * gtk/gtkiconfactory.c * gtk/gtkicontheme.c * gtk/gtkimage.c * gtk/gtkrc.c * gtk/gtkuimanager.c * gtk/gtkwindow.c: No need for the DLL ABI backward compatibility functions on Win64. svn path=/trunk/; revision=21040
* move variables to local scopes, fix indentation and silence bogus warningMichael Natterer2008-08-071-36/+42
| | | | | | | | | | | 2008-08-07 Michael Natterer <mitch@imendio.com> * gtk/gtkicontheme.c (apply_emblems): move variables to local scopes, fix indentation and silence bogus warning about using uninitialized variables. svn path=/trunk/; revision=21031
* Update to handle GEmblem`Matthias Clasen2008-08-041-8/+10
| | | | svn path=/trunk/; revision=20980
* Support rendering GEmblemedIconMatthias Clasen2008-07-281-1/+91
| | | | svn path=/trunk/; revision=20910
* Use g_set_error_literal where appropriate. Bug #538640.Christian Persch2008-06-191-4/+4
| | | | svn path=/trunk/; revision=20463
* Bug 538362 - Get Win32 icons back in the file chooserTor Lillqvist2008-06-161-0/+30
| | | | | | | | | | | | | | 2008-06-16 Tor Lillqvist <tml@novell.com> Bug 538362 - Get Win32 icons back in the file chooser * gtk/gtkicontheme.c (choose_icon): Check if the icon name is a reference to an icon resource in a DLL or .EXE as in the Registry. In that case, extract the icon and convert to a GdkPixbuf. Patch by Hans Breuer. svn path=/trunk/; revision=20398
* Fix docsMatthias Clasen2008-06-151-1/+1
| | | | svn path=/trunk/; revision=20392
* Bug 522084 – GIcon support for GtkIconTheme & GtkImageMatthias Clasen2008-05-291-75/+184
| | | | | | | | | | | | | | 2008-05-27 Matthias Clasen <mclasen@redhat.com> Bug 522084 – GIcon support for GtkIconTheme & GtkImage * gtk/gtkicontheme.[hc]: Add support for GIcon based lookups. * gtk/gtkimage.[hc]: Allow setting an image from a GIcon. * gtk/gtk.symbols: Additions * tests/testimage.c: Add a GIcon test svn path=/trunk/; revision=20236
* remove unused variable.Michael Natterer2008-01-091-4/+4
| | | | | | | | | | | | | | | | | | | | | 2008-01-09 Michael Natterer <mitch@imendio.com> * gtk/gtkcolorsel.c (make_label_spinbutton): remove unused variable. * gtk/gtkcombobox.c (gtk_combo_box_detacher) * gtk/gtkicontheme.c (theme_list_contexts) (gtk_icon_theme_lookup_icon) * gtk/gtkimcontextsimple.c (beep_window) * gtk/gtklinkbutton.c (set_link_color) * gtk/gtkuimanager.c (child_hierarchy_changed_cb): add casts to fix warnings. * gtk/gtkpathbar.c (_gtk_path_bar_set_file_system): remove unused variable and add const to another to fix a warning. svn path=/trunk/; revision=19330
* Two optimizations for icon cache lookups.Matthias Clasen2007-12-031-11/+23
| | | | | | | | | | | | | | | | | | | 2007-12-03 Matthias Clasen <mclasen@redhat.com> Two optimizations for icon cache lookups. * gtk/gtkiconcache.[hc]: * gtk/gtkicontheme.c: Remember the directory index for subdirectories, instead of running over the directory list again and again. * gtk/gtkiconcache.c (find_image_offset): Remember the last chain and try it first; this helps with the the usage patterns in gtkicontheme.c, where the same icon is queried for a lot of subdirectories. svn path=/trunk/; revision=19099
* Small cleanupsMatthias Clasen2007-07-181-5/+3
| | | | svn path=/trunk/; revision=18488
* use g_slice_dup().Sven Neumann2007-06-191-1/+2
| | | | | | | | 2007-06-19 Sven Neumann <sven@gimp.org> * gtk/gtkicontheme.c (gtk_icon_info_copy): use g_slice_dup(). svn path=/trunk/; revision=18189
* Initialize unthemed_icon to NULL to avoid accessing uninitialized memoryTorsten Schönfeld2007-06-031-1/+1
| | | | | | | | * gtk/gtkicontheme.c (choose_icon): Initialize unthemed_icon to NULL to avoid accessing uninitialized memory when gtk_icon_theme_choose_icon() is called with an empty names list. svn path=/trunk/; revision=18018
* Improve a warning Always set the error when returning NULL. (#440982,Matthias Clasen2007-05-251-5/+10
| | | | | | | | | | | | | 2007-05-25 Matthias Clasen <mclasen@redhat.com> * gtk/gtkiconfactory.c: Improve a warning * gtk/gtkicontheme.c (gtk_icon_info_load_icon): Always set the error when returning NULL. (#440982, Carlos Garcia Campos) svn path=/trunk/; revision=17912
* Add a function to look up an icon from a list of icon names. (#396901,Matthias Clasen2007-05-181-52/+128
| | | | | | | | | | | | | 2007-05-18 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtkicontheme.h: * gtk/gtkicontheme.c: Add a function to look up an icon from a list of icon names. (#396901, Luca Ferretti) svn path=/trunk/; revision=17868
* Set the filename to NULL for builtin icons, sincMatthias Clasen2007-04-251-4/+14
| | | | | | | | | | | | | 2007-04-25 Matthias Clasen <mclasen@redhat.com> * gtk/gtkicontheme.c (theme_lookup_icon): Set the filename to NULL for builtin icons, sinc gtk_icon_info_get_builtin_pixbuf() depends on it. * tests/testicontheme.c: Report builtin icons. svn path=/trunk/; revision=17638
* Ensure the icon_theme->all_icons and dir->icons hash tables use the sameChris Wilson2007-04-241-1/+1
| | | | | | | | | | | 2007-04-24 Chris Wilson <chris@chris-wilson.co.uk> * gtk/gtkicontheme.c (scan_directory): Ensure the icon_theme->all_icons and dir->icons hash tables use the same string as their keys. (#418531) svn path=/trunk/; revision=17626
* Add GTK_ICON_LOOKUP_GENERIC_FALLBACK icon lookup flag and implement it.Matthias Clasen2007-04-191-3/+22
| | | | | | | | | | | | 2007-04-19 Matthias Clasen <mclasen@redhat.com> * gtk/gtkicontheme.h: * gtk/gtkicontheme.c: Add GTK_ICON_LOOKUP_GENERIC_FALLBACK icon lookup flag and implement it. (#396901, Luca Ferreti) svn path=/trunk/; revision=17611
* Fix a couple of comment typos (#421627)Rodney Dawes2007-03-231-2/+2
| | | | | | | | | 2007-03-23 Rodney Dawes <dobey@novell.com> * gtk/gtkicontheme.c: Fix a couple of comment typos (#421627) svn path=/trunk/; revision=17559
* Add a new API call gtk_icon_theme_list_contexts so that one can chooseRodney Dawes2007-03-211-0/+66
| | | | | | | | | | | | | | 2007-03-21 Rodney Dawes <dobey@novell.com> * gtk/gtk.symbols: * gtk/gtkicontheme.[ch]: * docs/reference/gtk/gtk-sections.txt: * tests/testicontheme.c: Add a new API call gtk_icon_theme_list_contexts so that one can choose icons from a theme by context (#420719) svn path=/trunk/; revision=17550
* Protect ensure_valid_themes() from recursion, which can happen for exampleChris Wilson2007-03-151-38/+64
| | | | | | | | | | | | 2007-03-15 Chris Wilson <chris@chris-wilson.co.uk> * gtk/gtkicontheme.c (ensure_valid_themes), (rescan_themes), (gtk_icon_theme_rescan_if_needed): Protect ensure_valid_themes() from recursion, which can happen for example if the app tries to reload an icon from within a theme-changed handler. (#418531) svn path=/trunk/; revision=17523
* Remove unnecessary NULL checks before g_free(). (#369666, Morten Welinder,Matthias Clasen2007-03-091-10/+5
| | | | | | | | | | | | | 2007-03-09 Matthias Clasen <mclasen@redhat.com> * Everywhere: Remove unnecessary NULL checks before g_free(). (#369666, Morten Welinder, Djihed Afifi) * configure.in: Check for ftw.h svn path=/trunk/; revision=17444
* Be careful not to trigger a style reset before we have loaded the iconChris Wilson2007-03-061-13/+21
| | | | | | | | | | | | | 2007-03-06 Chris Wilson <chris@chris-wilson.co.uk> * gtk/gtkicontheme.c (update_current_theme), (gtk_icon_theme_init), (do_theme_change), (gtk_icon_theme_set_custom_theme), (load_themes): Be careful not to trigger a style reset before we have loaded the icon theme. (#414875). svn path=/trunk/; revision=17404
* Bug 409101 – invalid read to gtkicontheme.c insert_theme(), might causeChris Wilson2007-02-261-1/+1
| | | | | | | | | | | | | | 2007-02-26 Chris Wilson <chris@chris-wilson.co.uk> Bug 409101 – invalid read to gtkicontheme.c insert_theme(), might cause gnome-panel crash * gtk/gtkicontheme.c: (scan_directory): Reorder the replacement of the shared base_name key, so that we avoid dereferencing the string in the icon_theme->all_icon hash table after freeing it from the dir->icons hash table. svn path=/trunk/; revision=17353
* When finding a matching non-scalable dir, keep going and look for a closerMatthias Clasen2007-01-151-29/+54
| | | | | | | | | | | 2007-01-14 Matthias Clasen <mclasen@redhat.com> * gtk/gtkicontheme.c (theme_lookup_icon): When finding a matching non-scalable dir, keep going and look for a closer match. (#395830, Luca Ferretti) svn path=/trunk/; revision=17153
* Waste less time with non-directories. (#391725, Chris Wilson)Matthias Clasen2007-01-021-8/+9
| | | | | | | | | | | 2007-01-01 Matthias Clasen <mclasen@redhat.com> * gtk/gtkicontheme.c (load_themes): Waste less time with non-directories. (#391725, Chris Wilson) svn path=/trunk/; revision=17005
* Replace a lot of idle and timeout calls by the new gdk_threads api.Matthias Clasen2006-12-221-5/+1
| | | | | | | 2006-12-22 Matthias Clasen <mclasen@redhat.com> * *.c: Replace a lot of idle and timeout calls by the new gdk_threads api.
* Fix a crash with icon themesMatthias Clasen2006-12-021-0/+2
|
* plug memory leak. Fixes bug #362439.Paolo Borelli2006-10-151-2/+4
| | | | | | | 2006-10-15 Paolo Borelli <pborelli@katamail.com> * gtk/gtkicontheme.c (pixbuf_supports_svg): plug memory leak. Fixes bug #362439.