[gtk+] Transform the 'menu' detail string to the 'popup' class
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Transform the 'menu' detail string to the 'popup' class
- Date: Sat, 4 Dec 2010 15:15:32 +0000 (UTC)
commit c8e5d3b07b7f1d658ee7737c1726d2ab97b9ea28
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]