diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-10-29 07:08:15 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-10-29 07:08:15 -0400 |
commit | d634403d912d2d84f634c8e0491e9d9347f66fa0 (patch) | |
tree | ff29d1507fa80415d2cde7992a75b0c1ea422fa1 /gtk/gtkactionbar.c | |
parent | 2936d7bae8c4d834463ef572e1ec63dc6ecd0138 (diff) | |
download | gtk+-d634403d912d2d84f634c8e0491e9d9347f66fa0.tar.gz |
actionbar: Add an element name to the css node
This lets us avoid hardcoding the type in CSS.
Diffstat (limited to 'gtk/gtkactionbar.c')
-rw-r--r-- | gtk/gtkactionbar.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkactionbar.c b/gtk/gtkactionbar.c index 4b60de06ae..dd8aaf43ed 100644 --- a/gtk/gtkactionbar.c +++ b/gtk/gtkactionbar.c @@ -43,6 +43,10 @@ * contains an internal centered box which is centered with respect to * the full width of the box, even if the children at either side take * up different amounts of space. + * + * # CSS nodes + * + * GtkActionBar has a single CSS node with name actionbar. */ struct _GtkActionBarPrivate @@ -251,6 +255,7 @@ gtk_action_bar_class_init (GtkActionBarClass *klass) gtk_widget_class_bind_template_child_internal_private (widget_class, GtkActionBar, revealer); gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_PANEL); + gtk_widget_class_set_css_name (widget_class, "actionbar"); } static void |