diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-11-02 23:42:14 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-11-02 23:42:14 -0500 |
commit | aede5c65d336e288f3054f7ada888031f68b366d (patch) | |
tree | fba14885423ed156731f1624df2738f2f90efed1 /gtk/gtkseparatormenuitem.c | |
parent | ac553d7e44f44e161c204a04ab8480a9b619304c (diff) | |
download | gtk+-aede5c65d336e288f3054f7ada888031f68b366d.tar.gz |
menu item: Use CSS nodes
Use the element name menuitem for GtkMenuItem, GtkCheckMenuItem
and GtkRadioMenuItem. GtkSeparatorMenuItem gets the name separator.
Add a subnode with name arrow if a submenu is attached.
Give the radio and check menu items a subnode with name check or
radio.
Diffstat (limited to 'gtk/gtkseparatormenuitem.c')
-rw-r--r-- | gtk/gtkseparatormenuitem.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/gtkseparatormenuitem.c b/gtk/gtkseparatormenuitem.c index 938ca21518..80941a1aa2 100644 --- a/gtk/gtkseparatormenuitem.c +++ b/gtk/gtkseparatormenuitem.c @@ -36,6 +36,10 @@ * The #GtkSeparatorMenuItem is a separator used to group * items within a menu. It displays a horizontal line with a shadow to * make it appear sunken into the interface. + * + * # CSS nodes + * + * GtkSeparatorMenuItem has a single CSS node with name separator. */ G_DEFINE_TYPE (GtkSeparatorMenuItem, gtk_separator_menu_item, GTK_TYPE_MENU_ITEM) @@ -46,9 +50,10 @@ gtk_separator_menu_item_class_init (GtkSeparatorMenuItemClass *class) GTK_CONTAINER_CLASS (class)->child_type = NULL; gtk_widget_class_set_accessible_role (GTK_WIDGET_CLASS (class), ATK_ROLE_SEPARATOR); + gtk_widget_class_set_css_name (GTK_WIDGET_CLASS (class), "separator"); } -static void +static void gtk_separator_menu_item_init (GtkSeparatorMenuItem *item) { } |