[glade/glade-3-20] add background class to GladeDesignLayout children
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade/glade-3-20] add background class to GladeDesignLayout children
- Date: Sun, 26 Nov 2017 19:46:42 +0000 (UTC)
commit 46d8aca95097570b6487b22836a9dfcb48388195
Author: Lukas K <lu 0x83 eu>
Date: Sat Oct 29 15:35:30 2016 +0200
add background class to GladeDesignLayout children
gladeui/glade-design-layout.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gladeui/glade-design-layout.c b/gladeui/glade-design-layout.c
index 17e9a60..ec97982 100644
--- a/gladeui/glade-design-layout.c
+++ b/gladeui/glade-design-layout.c
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]