diff options
author | Alexander Larsson <alexl@redhat.com> | 2013-06-26 16:26:43 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2013-07-03 14:39:26 +0200 |
commit | 1d0bb3e010f397d89e03f2a8129d7a0f37ea5966 (patch) | |
tree | 6598001f3c478ccaca1332da19b6a389a0b81e0d /gtk/gtkicontheme.h | |
parent | 58adb70d43dfc6a10dde5847850c8a58e0c08137 (diff) | |
download | gtk+-1d0bb3e010f397d89e03f2a8129d7a0f37ea5966.tar.gz |
GtkIconTheme: Add helpers to load to cairo_surface_t
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.
Diffstat (limited to 'gtk/gtkicontheme.h')
-rw-r--r-- | gtk/gtkicontheme.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk/gtkicontheme.h b/gtk/gtkicontheme.h index 0902909459..8afa5ee917 100644 --- a/gtk/gtkicontheme.h +++ b/gtk/gtkicontheme.h @@ -210,6 +210,14 @@ GdkPixbuf * gtk_icon_theme_load_icon_for_scale (GtkIconTheme gint scale, GtkIconLookupFlags flags, GError **error); +GDK_AVAILABLE_IN_3_10 +cairo_surface_t * gtk_icon_theme_load_surface (GtkIconTheme *icon_theme, + const gchar *icon_name, + gint size, + gint scale, + GdkWindow *for_window, + GtkIconLookupFlags flags, + GError **error); GDK_AVAILABLE_IN_ALL GtkIconInfo * gtk_icon_theme_lookup_by_gicon (GtkIconTheme *icon_theme, @@ -261,6 +269,10 @@ GdkPixbuf * gtk_icon_info_get_builtin_pixbuf (GtkIconInfo *icon_info GDK_AVAILABLE_IN_ALL GdkPixbuf * gtk_icon_info_load_icon (GtkIconInfo *icon_info, GError **error); +GDK_AVAILABLE_IN_3_10 +cairo_surface_t * gtk_icon_info_load_surface (GtkIconInfo *icon_info, + GdkWindow *for_window, + GError **error); GDK_AVAILABLE_IN_3_8 void gtk_icon_info_load_icon_async (GtkIconInfo *icon_info, GCancellable *cancellable, |