[gtk+] icon view: Add an element name



commit ee3799f151ed64ba5acde5ea1e33833608c0076a
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Oct 30 17:44:36 2015 -0400

    icon view: Add an element name
    
    Not surprising anybody, I decided to call it iconview.

 gtk/gtkiconview.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index 4dbf096..143acb6 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -62,6 +62,10 @@
  * opposed to a flat list where the mapping to icons is obvious),
  * #GtkIconView will only display the first level of the tree and
  * ignore the tree’s branches.
+ *
+ * # CSS nodes
+ *
+ * GtkIconView has a single CSS node with name iconview and style class .view.
  */
 
 #define SCROLL_EDGE_SIZE 15
@@ -930,6 +934,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
                                  GTK_MOVEMENT_VISUAL_POSITIONS, -1);
 
   gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_ICON_VIEW_ACCESSIBLE);
+  gtk_widget_class_set_css_name (widget_class, "iconview");
 }
 
 static void


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