Commit 46d8aca9 authored by Lukas K.'s avatar Lukas K. Committed by Juan Pablo Ugarte
Browse files

add background class to GladeDesignLayout children

parent 07666151
......@@ -973,10 +973,13 @@ glade_design_layout_add (GtkContainer *container, GtkWidget *widget)
GladeDesignLayout *layout = GLADE_DESIGN_LAYOUT (container);
GladeDesignLayoutPrivate *priv = layout->priv;
GtkStyleContext *context = gtk_widget_get_style_context (widget);
priv->child_rect.width = 0;
priv->child_rect.height = 0;
gtk_style_context_add_class (context, "background");
gtk_widget_set_parent_window (widget, priv->offscreen_window);
GTK_CONTAINER_CLASS (glade_design_layout_parent_class)->add (container,
Supports Markdown
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