[gtk+/gtk-style-context: 328/533] GtkStyle: Transform menu accelerators string



commit f0bda2ccbb25892434661dd503eb12384537a000
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Nov 8 01:52:25 2010 +0100

    GtkStyle: Transform menu accelerators string

 gtk/gtkstyle.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c
index 9aba0fa..3a44de6 100644
--- a/gtk/gtkstyle.c
+++ b/gtk/gtkstyle.c
@@ -1786,6 +1786,8 @@ transform_detail_string (const gchar     *detail,
     }
   else if (strcmp (detail, "menuitem") == 0)
     gtk_style_context_add_class (context, "menu");
+  else if (strcmp (detail, "accellabel") == 0)
+    gtk_style_context_add_class (context, "accelerator");
   else if (g_str_has_prefix (detail, "cell"))
     {
       GtkRegionFlags row, col;



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