diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-08-06 20:02:49 -0400 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2016-08-09 17:31:55 +0100 |
commit | 7fffdb1e4ab348f4738d1b7a0d58ba40d29891f3 (patch) | |
tree | ef87063c1224aef558e7ec1cb94625670970968c | |
parent | 4a163a2bbee11c820666da63681b4bb0900b27a3 (diff) | |
download | gtk+-7fffdb1e4ab348f4738d1b7a0d58ba40d29891f3.tar.gz |
gadget: Fix handling of custom content
The transformations here were wrong, causing content to go nowhere.
This patch fixes check and radio buttons to appear as expected.
-rw-r--r-- | gtk/gtkcssgadget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkcssgadget.c b/gtk/gtkcssgadget.c index b89c41b424..edfc271bb1 100644 --- a/gtk/gtkcssgadget.c +++ b/gtk/gtkcssgadget.c @@ -909,7 +909,7 @@ gtk_css_gadget_get_render_node (GtkCssGadget *gadget, graphene_point3d_t tmp; graphene_matrix_init_translate (&content_transform, - graphene_point3d_init (&tmp, -contents_x, -contents_y, 0)); + graphene_point3d_init (&tmp, contents_x, contents_y, 0)); /* If there's an override in place, create a temporary node */ if (gadget_class->has_content (gadget)) @@ -925,7 +925,7 @@ gtk_css_gadget_get_render_node (GtkCssGadget *gadget, /* Compatibility mode: draw_focus is left to the draw() implementation */ draw_focus = gadget_class->draw (gadget, cr, - contents_x, contents_y, + 0, 0, contents_width, contents_height); g_free (str); |