[gtk+] font chooser: Add a CSS name



commit d2e80a79934ea59e13e7fe3c4d078e8f7b428213
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jan 13 23:42:35 2016 -0500

    font chooser: Add a CSS name
    
    The CSS name for GtkFontChooserWidget is fontchooser.

 gtk/gtkfontchooserwidget.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c
index 62e7c0a..0f62082 100644
--- a/gtk/gtkfontchooserwidget.c
+++ b/gtk/gtkfontchooserwidget.c
@@ -70,6 +70,10 @@
  * gtk_font_chooser_set_preview_text().
  *
  * Since: 3.2
+ *
+ * # CSS nodes
+ *
+ * GtkFontChooserWidget has a single CSS node with name fontchooser.
  */
 
 
@@ -611,6 +615,8 @@ gtk_font_chooser_widget_class_init (GtkFontChooserWidgetClass *klass)
   gtk_widget_class_bind_template_callback (widget_class, row_deleted_cb);
   gtk_widget_class_bind_template_callback (widget_class, size_change_cb);
   gtk_widget_class_bind_template_callback (widget_class, output_cb);
+
+  gtk_widget_class_set_css_name (widget_class, "fontchooser");
 }
 
 static void


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