summaryrefslogtreecommitdiff
path: root/gtk/gtkseparatormenuitem.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-11-02 23:42:14 -0500
committerMatthias Clasen <mclasen@redhat.com>2015-11-02 23:42:14 -0500
commitaede5c65d336e288f3054f7ada888031f68b366d (patch)
treefba14885423ed156731f1624df2738f2f90efed1 /gtk/gtkseparatormenuitem.c
parentac553d7e44f44e161c204a04ab8480a9b619304c (diff)
downloadgtk+-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.c7
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)
{
}