diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-10-25 17:18:20 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-10-25 17:18:20 -0400 |
commit | f1248ccea4b5c9dc9daec7b4d33ec70f8a7d8388 (patch) | |
tree | dfaba3bd264adad1b5d89ad8f6ffa039e0a1fd07 /gtk/gtkinfobar.c | |
parent | 2de0f06af92ae2d0a44d3b5f0374141f84d158e4 (diff) | |
download | gtk+-f1248ccea4b5c9dc9daec7b4d33ec70f8a7d8388.tar.gz |
infobar: Add a name to the css node
This lets us avoid the type name in css.
Diffstat (limited to 'gtk/gtkinfobar.c')
-rw-r--r-- | gtk/gtkinfobar.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/gtkinfobar.c b/gtk/gtkinfobar.c index 01f0f48307..919b95cdfa 100644 --- a/gtk/gtkinfobar.c +++ b/gtk/gtkinfobar.c @@ -119,6 +119,12 @@ * multiple <action-widget> elements. The “response” attribute specifies a * numeric response, and the content of the element is the id of widget * (which should be a child of the dialogs @action_area). + * + * # CSS nodes + * + * GtkInfoBar has a single CSS node with name infobar. The node may get + * one of the style classes .info, warning, .error or .question, depending + * on the message type. */ enum @@ -585,6 +591,8 @@ gtk_info_bar_class_init (GtkInfoBarClass *klass) gtk_widget_class_bind_template_child_internal_private (widget_class, GtkInfoBar, action_area); gtk_widget_class_bind_template_child_internal_private (widget_class, GtkInfoBar, close_button); gtk_widget_class_bind_template_child_internal_private (widget_class, GtkInfoBar, revealer); + + gtk_widget_class_set_css_name (widget_class, "infobar"); } static void |