summaryrefslogtreecommitdiff
path: root/gtk/gtkstylecontext.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2013-06-25 13:59:51 +0200
committerAlexander Larsson <alexl@redhat.com>2013-07-03 14:39:26 +0200
commit635ae9bd919a60d4241a9c5a546fc281a5e4d59f (patch)
treeebde753e91d8c948dfcc3fe4cc061ee0c97bbe17 /gtk/gtkstylecontext.h
parent91a268f00e26448325cacf81536cfe2ed30a52d1 (diff)
downloadgtk+-635ae9bd919a60d4241a9c5a546fc281a5e4d59f.tar.gz
icon factory: Add gtk_icon_set_render_icon_surface
Support scales when falling back to loading icons from the icon theme. In order to actually render scaled icons we add gtk_icon_set_render_icon_surface which renders to a cairo_surface_t which includes whatever scaling you need for scaled icons.
Diffstat (limited to 'gtk/gtkstylecontext.h')
-rw-r--r--gtk/gtkstylecontext.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtkstylecontext.h b/gtk/gtkstylecontext.h
index a72b28cafe..59012edd98 100644
--- a/gtk/gtkstylecontext.h
+++ b/gtk/gtkstylecontext.h
@@ -885,6 +885,13 @@ GDK_AVAILABLE_IN_ALL
GdkPixbuf * gtk_icon_set_render_icon_pixbuf (GtkIconSet *icon_set,
GtkStyleContext *context,
GtkIconSize size);
+GDK_AVAILABLE_IN_3_10
+cairo_surface_t *
+gtk_icon_set_render_icon_surface (GtkIconSet *icon_set,
+ GtkStyleContext *context,
+ GtkIconSize size,
+ int scale,
+ GdkWindow *for_window);
GDK_AVAILABLE_IN_ALL
void gtk_style_context_set_screen (GtkStyleContext *context,