summaryrefslogtreecommitdiff
path: root/gtk/gtkstyle.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-11-25 21:47:46 -0500
committerCarlos Garnacho <carlosg@gnome.org>2010-12-04 15:39:47 +0100
commit5adfe6029de005e538b296c2e6bb0370b87106bd (patch)
treeb199f7bf7a9b07521e4f482a44344701fdfcb55e /gtk/gtkstyle.c
parent2578f4f4c389845aab951fcbf9a1716a89403f06 (diff)
downloadgtk+-5adfe6029de005e538b296c2e6bb0370b87106bd.tar.gz
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.
Diffstat (limited to 'gtk/gtkstyle.c')
-rw-r--r--gtk/gtkstyle.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c
index a59f1e4bb4..9fea0d3420 100644
--- a/gtk/gtkstyle.c
+++ b/gtk/gtkstyle.c
@@ -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)