[gtk+] actionbar: Add an element name to the css node
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] actionbar: Add an element name to the css node
- Date: Thu, 29 Oct 2015 11:08:44 +0000 (UTC)
commit d634403d912d2d84f634c8e0491e9d9347f66fa0
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Oct 29 07:08:15 2015 -0400
actionbar: Add an element name to the css node
This lets us avoid hardcoding the type in CSS.
gtk/gtkactionbar.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkactionbar.c b/gtk/gtkactionbar.c
index 4b60de0..dd8aaf4 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]