diff options
author | Benjamin Otte <otte@redhat.com> | 2016-12-13 05:08:40 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-12-20 18:01:10 +0100 |
commit | c258ee403a92203957f786138e79cfbeea853ad1 (patch) | |
tree | f21fe8528caf9b66e2208f059544984214bb759d /gtk/gtkiconhelper.c | |
parent | e6d423e0e26ec4630667defa2ffe3e1e83d6b894 (diff) | |
download | gtk+-c258ee403a92203957f786138e79cfbeea853ad1.tar.gz |
snapshot: Make gtk_snapshot_get_renderer() private
Public API doesn't need to be concerned with renderers. Worst case, they
can use NULL instead of the actual renderer.
Diffstat (limited to 'gtk/gtkiconhelper.c')
-rw-r--r-- | gtk/gtkiconhelper.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c index 72362d4677..82576fd7ba 100644 --- a/gtk/gtkiconhelper.c +++ b/gtk/gtkiconhelper.c @@ -553,8 +553,7 @@ gtk_icon_helper_ensure_surface (GtkIconHelper *self) } static void -gtk_icon_helper_ensure_texture (GtkIconHelper *self, - GskRenderer *renderer) +gtk_icon_helper_ensure_texture (GtkIconHelper *self) { cairo_surface_t *map; int width, height, scale; @@ -874,7 +873,7 @@ gtk_icon_helper_snapshot (GtkIconHelper *self, GtkCssStyle *style; GskTexture *texture; - gtk_icon_helper_ensure_texture (self, gtk_snapshot_get_renderer (snapshot)); + gtk_icon_helper_ensure_texture (self); texture = self->priv->texture; if (texture == NULL) return; |