[gtk+/wip/ebassi/gsk-renderer: 99/135] gadget: Fix handling of custom content
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/ebassi/gsk-renderer: 99/135] gadget: Fix handling of custom content
- Date: Mon, 17 Oct 2016 16:30:12 +0000 (UTC)
commit ed8db31f818bab563c225ffcd106a04ad1699717
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Aug 6 20:02:49 2016 -0400
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.
gtk/gtkcssgadget.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcssgadget.c b/gtk/gtkcssgadget.c
index b89c41b..edfc271 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]