summaryrefslogtreecommitdiff
path: root/gtk/gtkrendericonprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-02-16 09:09:35 +0100
committerBenjamin Otte <otte@redhat.com>2018-03-16 06:04:44 +0100
commitc59948169d82bdc808bf91cf621fe045c1e01e90 (patch)
tree9503ae1cf92057f76cd25522254555b2f1589dfe /gtk/gtkrendericonprivate.h
parenta4e16ce3cc41ee50a6b8d5eb895f27f5c178bac0 (diff)
downloadgtk+-c59948169d82bdc808bf91cf621fe045c1e01e90.tar.gz
iconhelper: transition to GdkPaintable
This is in preparation for accepting the image type paintable. It's a bit incovenient because we need more code to track width/height ourselves (as the paintable no longer does it for us), but it's not too hard. GtkIconHelper does not track invalidations on the paintable.
Diffstat (limited to 'gtk/gtkrendericonprivate.h')
-rw-r--r--gtk/gtkrendericonprivate.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/gtkrendericonprivate.h b/gtk/gtkrendericonprivate.h
index b8ea37380a..c0dba208d0 100644
--- a/gtk/gtkrendericonprivate.h
+++ b/gtk/gtkrendericonprivate.h
@@ -47,10 +47,11 @@ void gtk_css_style_render_icon_surface (GtkCssStyle *style,
cairo_surface_t *surface,
double x,
double y);
-void gtk_css_style_snapshot_icon_texture (GtkCssStyle *style,
+void gtk_css_style_snapshot_icon_paintable (GtkCssStyle *style,
GtkSnapshot *snapshot,
- GdkTexture *texture,
- double texture_scale,
+ GdkPaintable *paintable,
+ double width,
+ double height,
gboolean recolor);
void gtk_css_style_render_icon_get_extents (GtkCssStyle *style,