[gtk+] toolpalette: Use element names



commit 7568d17a1507de88cbaa6264bacf825c0ff60350
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Oct 31 21:02:36 2015 -0400

    toolpalette: Use element names
    
    Give the GtkToolPalette and GtkToolItemGroup the element
    names toolpalette and toolitemgroup.

 gtk/gtktoolitemgroup.c |    6 ++++++
 gtk/gtktoolpalette.c   |    6 ++++++
 2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktoolitemgroup.c b/gtk/gtktoolitemgroup.c
index 1b734b5..7d362b2 100644
--- a/gtk/gtktoolitemgroup.c
+++ b/gtk/gtktoolitemgroup.c
@@ -48,6 +48,10 @@
  * #GtkToolItems to a palette like container with different
  * categories and drag and drop support.
  *
+ * # CSS nodes
+ *
+ * GtkToolItemGroup has a single CSS node named toolitemgroup.
+ *
  * Since: 2.20
  */
 
@@ -1684,6 +1688,8 @@ gtk_tool_item_group_class_init (GtkToolItemGroupClass *cls)
                                                                 G_MAXINT,
                                                                 0,
                                                                 GTK_PARAM_READWRITE));
+
+  gtk_widget_class_set_css_name (wclass, "toolitemgroup");
 }
 
 /**
diff --git a/gtk/gtktoolpalette.c b/gtk/gtktoolpalette.c
index 82e7637..c51fb0b 100644
--- a/gtk/gtktoolpalette.c
+++ b/gtk/gtktoolpalette.c
@@ -109,6 +109,10 @@
  *                                 GDK_ACTION_COPY);
  * ]|
  *
+ * # CSS nodes
+ *
+ * GtkToolPalette has a single CSS node named toolpalette.
+ *
  * Since: 2.20
  */
 
@@ -1024,6 +1028,8 @@ gtk_tool_palette_class_init (GtkToolPaletteClass *cls)
                                                                     P_("Whether the item group should 
receive extra space when the palette grows"),
                                                                     DEFAULT_CHILD_EXPAND,
                                                                     GTK_PARAM_READWRITE));
+
+  gtk_widget_class_set_css_name (wclass, "toolpalette");
 }
 
 /**


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