From be3fc28e6663e9cc806b5d162da0531598e0ff21 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Wed, 9 Mar 2011 01:14:24 -0500 Subject: [PATCH] paned: don't set the "pane-separator" style class to all the container Otherwise children inherit color properties specified for the pane separator itself. https://bugzilla.gnome.org/show_bug.cgi?id=644276 --- gtk/gtkpaned.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c index 6962059dd7..2094c9506d 100644 --- a/gtk/gtkpaned.c +++ b/gtk/gtkpaned.c @@ -685,9 +685,6 @@ gtk_paned_init (GtkPaned *paned) priv->handle_pos.y = -1; priv->drag_pos = -1; - - context = gtk_widget_get_style_context (GTK_WIDGET (paned)); - gtk_style_context_add_class (context, GTK_STYLE_CLASS_PANE_SEPARATOR); } static void @@ -1213,6 +1210,7 @@ gtk_paned_draw (GtkWidget *widget, gtk_style_context_save (context); gtk_style_context_set_state (context, state); + gtk_style_context_add_class (context, GTK_STYLE_CLASS_PANE_SEPARATOR); gtk_render_handle (context, cr, priv->handle_pos.x - allocation.x, priv->handle_pos.y - allocation.y,