diff options
author | Benjamin Otte <otte@redhat.com> | 2016-12-13 04:22:13 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-12-20 18:01:10 +0100 |
commit | b1200756981a9d7c0f1862402e09d195627af4f6 (patch) | |
tree | 729f3cb59b43fa25a306c9cfc358261357db917b /gtk/gtkrendericon.c | |
parent | ee9aca882d098a08a6e82a5f4d12dc437a2aff79 (diff) | |
download | gtk+-b1200756981a9d7c0f1862402e09d195627af4f6.tar.gz |
snapshot: Add API for colors and textures
Diffstat (limited to 'gtk/gtkrendericon.c')
-rw-r--r-- | gtk/gtkrendericon.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gtk/gtkrendericon.c b/gtk/gtkrendericon.c index 082f87d7d2..9be7201e83 100644 --- a/gtk/gtkrendericon.c +++ b/gtk/gtkrendericon.c @@ -297,17 +297,11 @@ gtk_css_style_snapshot_icon_texture (GtkCssStyle *style, if (graphene_matrix_is_identity (&transform_matrix)) { - double offset_x, offset_y; - - gtk_snapshot_get_offset (snapshot, &offset_x, &offset_y); graphene_rect_init (&bounds, - offset_x, offset_y, + 0, 0, gsk_texture_get_width (texture) / texture_scale, gsk_texture_get_height (texture) / texture_scale); - icon_node = gsk_texture_node_new (texture, &bounds); - gsk_render_node_set_name (icon_node, "Icon"); - - gtk_snapshot_append_node (snapshot, icon_node); + gtk_snapshot_append_texture_node (snapshot, texture, &bounds, "Icon"); } else { |