Commit 5adfe602 authored by Matthias Clasen's avatar Matthias Clasen Committed by Carlos Garnacho

Don't add class "scrollbar" for every trough

Turns out "trough" as a detail string is used in a variety
of widgets, not all of which are scrollbars.
parent 2578f4f4
......@@ -118,6 +118,10 @@ gtk_scrollbar_class_init (GtkScrollbarClass *class)
static void
gtk_scrollbar_init (GtkScrollbar *scrollbar)
{
GtkStyleContext *context;
context = gtk_widget_get_style_context (GTK_WIDGET (scrollbar));
gtk_style_context_add_class (context, GTK_STYLE_CLASS_SCROLLBAR);
}
static void
......
......@@ -1805,10 +1805,7 @@ transform_detail_string (const gchar *detail,
strcmp (detail, "viewportbin") == 0)
gtk_style_context_add_class (context, "viewport");
else if (strncmp (detail, "trough", 6) == 0)
{
gtk_style_context_add_class (context, "scrollbar");
gtk_style_context_add_class (context, "trough");
}
gtk_style_context_add_class (context, "trough");
else if (strcmp (detail, "spinbutton") == 0)
gtk_style_context_add_class (context, "spinbutton");
else if (strcmp (detail, "spinbutton_up") == 0)
......
Markdown is supported
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