[gtk+/gtk-style-context: 395/490] Transform the 'menu' detail string to the 'popup' class



commit 02da10c0fad1e2670a6061b659b9cd127f32b7f8
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Nov 17 01:38:40 2010 -0500

    Transform the 'menu' detail string to the 'popup' class

 gtk/gtkstyle.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c
index 8981613..4acab1b 100644
--- a/gtk/gtkstyle.c
+++ b/gtk/gtkstyle.c
@@ -1793,6 +1793,11 @@ transform_detail_string (const gchar     *detail,
       gtk_style_context_add_class (context, "menuitem");
       gtk_style_context_add_class (context, "menu");
     }
+  else if (strcmp (detail, "menu") == 0)
+    {
+      gtk_style_context_add_class (context, "popup");
+      gtk_style_context_add_class (context, "menu");
+    }
   else if (strcmp (detail, "accellabel") == 0)
     gtk_style_context_add_class (context, "accelerator");
   else if (strcmp (detail, "menubar") == 0)



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