diff options
author | Matthias Clasen <mclasen@redhat.com> | 2010-11-25 21:47:46 -0500 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2010-12-04 15:39:47 +0100 |
commit | 5adfe6029de005e538b296c2e6bb0370b87106bd (patch) | |
tree | b199f7bf7a9b07521e4f482a44344701fdfcb55e /gtk/gtkstyle.c | |
parent | 2578f4f4c389845aab951fcbf9a1716a89403f06 (diff) | |
download | gtk+-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.c | 5 |
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) |