diff options
author | Benjamin Otte <otte@redhat.com> | 2016-11-15 07:25:13 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-11-15 17:49:19 +0100 |
commit | dad8703e03fb6c6a01957bcfa29b876ba045ed2d (patch) | |
tree | fac9e5bbbbf3abcc8447d28c29c0458641c65a1a /gtk/gtkiconhelper.c | |
parent | 0cf9f70ccd0ed212b2198527c15774c3b94e29f2 (diff) | |
download | gtk+-dad8703e03fb6c6a01957bcfa29b876ba045ed2d.tar.gz |
snapshot: Convert GtkSpinner
Diffstat (limited to 'gtk/gtkiconhelper.c')
-rw-r--r-- | gtk/gtkiconhelper.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c index e02e43fbca..397f79e2b7 100644 --- a/gtk/gtkiconhelper.c +++ b/gtk/gtkiconhelper.c @@ -861,20 +861,17 @@ void gtk_icon_helper_snapshot (GtkIconHelper *self, GtkSnapshot *snapshot) { + GtkCssStyle *style; GskTexture *texture; - GskRenderNode *node; - graphene_rect_t bounds; gtk_icon_helper_ensure_texture (self, gtk_snapshot_get_renderer (snapshot)); texture = self->priv->texture; if (texture == NULL) return; - graphene_rect_init (&bounds, 0, 0, gsk_texture_get_width (texture), gsk_texture_get_height (texture)); + style = gtk_css_node_get_style (gtk_css_gadget_get_node (GTK_CSS_GADGET (self))); - node = gtk_snapshot_append (snapshot, &bounds, "Icon Helper"); - gsk_render_node_set_texture (node, texture); - gsk_render_node_unref (node); + gtk_css_style_snapshot_icon (style, snapshot, texture); } gboolean |