diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2010-11-22 02:40:05 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2010-12-04 15:39:24 +0100 |
commit | 0c1cfd8a341bb3da485387a4cca9dcef0284780a (patch) | |
tree | 14623a819112e5d849b596083ae46efaf3e24183 /gtk/gtkstyle.c | |
parent | 71f187a84fdf6b5f0136ce08946c21624ca68ecc (diff) | |
download | gtk+-0c1cfd8a341bb3da485387a4cca9dcef0284780a.tar.gz |
GtkStyle: handle scales when translating the detail string.
Diffstat (limited to 'gtk/gtkstyle.c')
-rw-r--r-- | gtk/gtkstyle.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c index 482cdf449a..1da8821a4f 100644 --- a/gtk/gtkstyle.c +++ b/gtk/gtkstyle.c @@ -1807,6 +1807,12 @@ transform_detail_string (const gchar *detail, gtk_style_context_add_class (context, "slider"); gtk_style_context_add_class (context, "scrollbar"); } + else if (strcmp (detail, "vscale") == 0 || + strcmp (detail, "hscale") == 0) + { + gtk_style_context_add_class (context, "slider"); + gtk_style_context_add_class (context, "scale"); + } else if (strcmp (detail, "menuitem") == 0) { gtk_style_context_add_class (context, "menuitem"); @@ -1823,7 +1829,8 @@ transform_detail_string (const gchar *detail, gtk_style_context_add_class (context, "menubar"); else if (strcmp (detail, "base") == 0) gtk_style_context_add_class (context, "background"); - else if (strcmp (detail, "bar") == 0) + else if (strcmp (detail, "bar") == 0 || + strcmp (detail, "progressbar") == 0) gtk_style_context_add_class (context, "progressbar"); else if (strcmp (detail, "toolbar") == 0) gtk_style_context_add_class (context, "toolbar"); |