Commit ed8db31f authored by Matthias Clasen's avatar Matthias Clasen Committed by Emmanuele Bassi

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.
parent d40636b6
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment