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

Prevent box gadget content from being drawn twice

Now that we split out box gadget children into separate
render nodes, we must not draw them onto the box gadgets
node anymore.
parent 4ea6ee45
......@@ -518,6 +518,12 @@ gtk_box_gadget_draw (GtkCssGadget *gadget,
return FALSE;
static gboolean
gtk_box_gadget_has_content (GtkCssGadget *gadget)
return FALSE;
static void
gtk_box_gadget_finalize (GObject *object)
......@@ -539,6 +545,7 @@ gtk_box_gadget_class_init (GtkBoxGadgetClass *klass)
gadget_class->get_preferred_size = gtk_box_gadget_get_preferred_size;
gadget_class->allocate = gtk_box_gadget_allocate;
gadget_class->draw = gtk_box_gadget_draw;
gadget_class->has_content = gtk_box_gadget_has_content;
static void
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