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
This commit is contained in:
Cosimo Cecchi
2011-03-09 01:14:24 -05:00
committed by Matthias Clasen
parent 21558ae67f
commit 677f268e8d

View File

@@ -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,