[gtk+] GtkStyle: Transform menu accelerators string



commit 46b8cc86868c0acc2a1a11caee22abbad0866b55
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]