[gtk+] stack: Set an element name



commit 910f4f72baa3b9b273fe9fd9e6523d40eb6d939f
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Nov 3 23:19:28 2015 -0500

    stack: Set an element name
    
    And it is...stack.

 gtk/gtkstack.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c
index 2460609..2f8b0f0 100644
--- a/gtk/gtkstack.c
+++ b/gtk/gtkstack.c
@@ -46,6 +46,10 @@
  * setting.
  *
  * The GtkStack widget was added in GTK+ 3.10.
+ *
+ * # CSS nodes
+ *
+ * GtkStack has a single CSS node named stack.
  */
 
 /**
@@ -522,6 +526,8 @@ gtk_stack_class_init (GtkStackClass *klass)
                          GTK_PARAM_READWRITE);
 
   gtk_container_class_install_child_properties (container_class, LAST_CHILD_PROP, stack_child_props);
+
+  gtk_widget_class_set_css_name (widget_class, "stack");
 }
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]