[gtk+] paned: don't set the "pane-separator" style class to all the container



commit 677f268e8db8930613bb6f80b91df997582762c1
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Mar 9 01:14:24 2011 -0500

    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 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c
index 6962059..2094c95 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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]