summaryrefslogtreecommitdiff
path: root/gtk/gtkicontheme.h
Commit message (Collapse)AuthorAgeFilesLines
* icontheme: Clarify GENERIC_FALLBACK flag handlingBenjamin Otte2015-10-281-1/+2
| | | | | - Add docs explaining that it doesn't work everywhere - g_warn_if_fail() in the APIs where it doesn't work
* Deprecate gtk_icon_theme_add_builtin_iconMatthias Clasen2014-06-301-2/+2
| | | | | Builtin icons are deprecated in favor of loading icons from resource paths.
* Make gtk_icon_theme_add_resource_path public APIMatthias Clasen2014-06-301-0/+4
| | | | | | | This makes it possible to look up icons in resources using the icon theme api, and should be used as a replacement for installing icons below $pkgdatadir/icons and adding that location to the search path.
* GtkIconTheme: Keep gtk_icon_theme_add_resource_path private for nowMatthias Clasen2014-06-201-4/+0
| | | | | We need to discuss some details of the semantics before we can make this public.
* Revert "Deprecate gtk_icon_theme_add_builtin_icon"Matthias Clasen2014-06-201-2/+2
| | | | This reverts commit 923eeda2d3cae13d02b0a9d2e5774b12eed999e0.
* Deprecate gtk_icon_theme_add_builtin_iconMatthias Clasen2014-06-201-2/+2
|
* GtkIconTheme: Allow loading icons from resourcesMatthias Clasen2014-06-201-0/+4
| | | | | | We add a new API, gtk_icon_theme_add_resource_path, which can be used to add resource path as a base location for icon theme content, similar to gtk_icon_theme_append_search_path.
* GtkIconTheme: Deprecate functionality related to .icon filesMatthias Clasen2014-06-201-4/+4
| | | | This functionality is not used at all in modern icon themes.
* Drop the builtin icon cacheMatthias Clasen2014-06-201-3/+0
| | | | | We don't need it anymore, now that the non-standard stock icons are using resources.
* GtkIconTheme: Support looking up directional variantsMatthias Clasen2014-05-141-1/+7
| | | | | | | | | | | | | Add two new icon lookup flags, GTK_ICON_LOOKUP_DIR_LTR and _RTL, which tell GtkIconTheme to look for icon variants which have a -ltr or -rtl suffix. GtkIconHelper adds these lookup flags when looking up icons. Note that due to the way this overlaps with symbolic icon lookup, directional variants of symbolic icons must be called -symbolic-rtl, not -rtl-symbolic. https://bugzilla.gnome.org/show_bug.cgi?id=729980
* icontheme: Don't force missing iconBenjamin Otte2014-05-141-4/+4
| | | | | | When forcing regular or symbolic icons, fall back to the default specified icons. This ensures that when no symbolic icon is present, an icon will still appear - the regular one.
* API: icontheme: Add 2 new GtkIconLookupFlagsBenjamin Otte2014-05-141-1/+7
| | | | | | | | GTK_ICON_LOOKUP_FORCE_REGULAR and GTK_ICON_LOOKUP_FORCE_SYMBOLIC can be used to force a regular or symbolic icon to be loaded, even if the icon names specify a different version. This is intended to support the CSS property -gtk-icon-style.
* docs: use apostrophes in *n'tWilliam Jon McCann2014-02-071-1/+1
|
* docs: fix typoVolker Sobek2014-01-211-1/+1
| | | | Correct the last occurrence of 'explicitely'.
* docs: fix docs for GtkIconLookupFlagsWilliam Jon McCann2014-01-211-3/+3
|
* docs: fix docs for GtkIconThemeWilliam Jon McCann2014-01-211-1/+1
|
* docs: avoid ambiguous return tagsWilliam Jon McCann2014-01-211-1/+1
|
* docs: add Gtk*Class docsWilliam Jon McCann2014-01-201-0/+11
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=81006
* GtkIconInfo: add gtk_icon_info_is_symbolic()William Hua2014-01-081-0/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=710351
* docs: gtk_icon_theme_lookup_by_gicon_for_scale() is newMurray Cumming2013-07-271-0/+1
| | | | It was added in commit 58adb70d43dfc6a10dde5847850c8a58e0c08137 .
* GtkIconTheme: Add helpers to load to cairo_surface_tAlexander Larsson2013-07-031-0/+12
| | | | | | Right now this just uses the pixbuf load code and converts it to a surface. In the future we could cache the pattern to allow reusing the surface.
* icontheme: Add support for high resolution iconsCarlos Garnacho2013-07-031-0/+28
| | | | | | | | | | | | | | | | | | | | | An optional OutputScale integer key has been added to index.theme subdirs description, so icon themes may provide icons that are more suitable to render at a (typically 2x) integer upscaled resolution. This way it is possible to make eg. a 16x16@2x icon has a real size of 32x32, but contains a similar level of detail to the 16x16 icon so things don't look any more cluttered on high-dpi screens. The pixbuf lookup has changed so it prefers a minimal scale change that yields the minimal real size difference, so if looking up for a 16x16 icon at 2x, it would first prefer 16x16@2x, then 32x32, and then any other icon that's closest to match There is now *_for_scale() variants for all GtkIconTheme ways to directly or indirectly fetch a GdkPixbuf. This is based on code by Carlos Garnacho with changes by Alexander Larsson
* Add annotations to gtk headersMatthias Clasen2013-05-051-0/+34
| | | | Add annotations to all exported functions in GTK+ headers.
* icontheme: Remove unused functionBenjamin Otte2013-04-061-1/+0
|
* Fix GtkIconInfo docsAlexander Larsson2013-02-151-0/+2
| | | | | | | | | | | gtk_icon_info_copy and gtk_icon_info_free are deprecated for the corresponding GObject methods. We set correct transfer markup for the GtkIconInfo returning methods to fix the introspection of them. gtk_icon_info_load_symbolic_for_context_async had the wrong method name in its documentation block.
* GtkIconTheme: Add async versions of symbolic icon loadersAlexander Larsson2013-02-141-0/+25
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=693802
* Add gtk_icon_info_load_icon_asyncAlexander Larsson2013-02-141-0/+9
| | | | | | | This lets you asynchronously load icons. We need this for gnome-shell to replace its current non-threadsafe use of GtkIconTheme. https://bugzilla.gnome.org/show_bug.cgi?id=693802
* Make GtkIconInfo a GObjectAlexander Larsson2013-02-141-0/+6
| | | | | | | | | | | This is necessary in order to have async operations on it. All the old copy/free functions keeps working, and g_boxed_copy on a GObject also works, so this should be mostly compatible, but techncally its a minor ABI break since the GType changes fundamental type. Changes like this has happened before though, like with GVariant becomming its own fundamental type. https://bugzilla.gnome.org/show_bug.cgi?id=693802
* Move single-include guards inside include guardsMatthias Clasen2012-12-281-3/+3
| | | | | | gcc has optimizations for include guards that only work if they are outermost in the the header. https://bugzilla.gnome.org/show_bug.cgi?id=689810
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* gtk: Use versioned deprecationsMatthias Clasen2012-02-271-1/+1
| | | | | | | This patch changes all uses of GDK_DEPRECATED(_FOR) in gtk headers by the versioned variants, GDK_DEPRECATED_IN_3_x(_FOR). At the same time, we add GDK_AVAILABLE_IN_3_x annotations for all API additions in 3.2 and 3.4.
* Drop use of GDK_DISABLE_DEPRECATED guards in gtkMatthias Clasen2011-11-091-2/+0
| | | | | We now use function attributes for deprecation so the build-breaking guards are no longer needed.
* Move gtkstyle and gtkrc to deprecated/Matthias Clasen2011-11-021-1/+0
| | | | | | This required a somewhat more substantial include reshuffling. Some typedefs have been moved to gtkiconfactory.h and to gtksettings.h.
* Add deprecation annotations for deprecated functionsMatthias Clasen2011-10-111-0/+1
| | | | | | We define our own GDK_DEPRECATED[_FOR] macros for this and allow it to be turned off by defining the GDK_DISABLE_DEPRECATION_WARNINGS macro.
* gtk: Use const instead G_CONST_RETURNJavier Jardón2011-06-101-2/+2
|
* Move documentation to inline comments: GtkIconThemeJavier Jardón2011-04-151-0/+22
|
* icontheme: constify arguments to gtk_icon_theme_load_symbolic()Benjamin Otte2011-02-111-4/+4
|
* gtk: add missing class paddingMichael Natterer2011-01-251-0/+6
| | | | | | Sorry for this late ABI break, but the newly added style classes definitely need padding, so I can just as well add missing padding globally.
* Deprecate gtk_icon_info_load_symbolic_for_styleMatthias Clasen2010-12-041-0/+2
| | | | | | We might end removing it altogether since it is a bit silly to have Since: 3.0 Deprecated: 3.0
* Add a GtkStyleContext-variant of symbolic icon loadingMatthias Clasen2010-12-041-0/+5
|
* Make gtk_icon_info_load_symbolic() Take GdkRGBA colors.Carlos Garnacho2010-10-221-5/+5
|
* Drop Win32 DLL ABI compatibility cruftTor Lillqvist2010-08-301-9/+0
| | | | No need for that any longer as we are changing DLL name.
* GtkIconTheme: unseal private pointerJavier Jardón2010-07-131-1/+1
|
* Add a variant of gtk_icon_theme_load_symbolic that takes a styleMatthias Clasen2010-06-141-0/+6
| | | | As proposed by Owen in bug 621578 to reduce code duplication.
* Remove all traces of GDK_PIXBUF/GTK_DISABLE_SINGLE_INCLUDESMichael Natterer2010-05-031-1/+1
| | | | ...and disallow inclusion of individual files unconditionally.
* Support 'symbolic' themed iconsMatthias Clasen2010-04-281-0/+7
| | | | | | | | | | | | | | 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
* gtk/gtkaction.h gtk/gtkbuildable.h gtk/gtkbuilderprivate.hMichael Natterer2008-06-231-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-06-23 Michael Natterer <mitch@imendio.com> * gtk/gtkaction.h * gtk/gtkbuildable.h * gtk/gtkbuilderprivate.h * gtk/gtkcelllayout.h * gtk/gtkentrycompletion.h * gtk/gtkfilechoosersettings.h * gtk/gtkfilesystem.h * gtk/gtkfilesystemmodel.h * gtk/gtkicontheme.h * gtk/gtklinkbutton.h * gtk/gtkpagesetup.h * gtk/gtkpapersize.h * gtk/gtkprintcontext.h * gtk/gtkprintoperation.h * gtk/gtkprintoperationpreview.h * gtk/gtkprintsettings.h * gtk/gtkrecentchooserprivate.h * gtk/gtkrecentmanager.h * gtk/gtksearchengine.h * gtk/gtktexttag.h * gtk/gtktreeselection.h * gtk/gtktreeviewcolumn.h * gtk/gtkuimanager.h: remove redundant inclusion of <glib.h> and <glib-object.h>. There is no point in relying on them being pulled in by other headers in some places and placing them explicitly in other places, so choose the "as little includes as possible" approach and get rid of them. svn path=/trunk/; revision=20675
* Seal priv pointer in GtkIconTheme.Tim Janik2008-06-201-1/+1
| | | | svn path=/trunk/; revision=20565
* Bug 522084 – GIcon support for GtkIconTheme & GtkImageMatthias Clasen2008-05-291-27/+37
| | | | | | | | | | | | | | 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
* 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