[gtk+/gtk-style-context: 429/490] GtkStyle: handle scales when translating the detail string.



commit 679d81e96607c64e766c270ed1bbd73e94b1568e
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Nov 22 02:40:05 2010 +0100

    GtkStyle: handle scales when translating the detail string.

 gtk/gtkstyle.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c
index 482cdf4..1da8821 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");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]