[gtk+] color chooser: Set a CSS name
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] color chooser: Set a CSS name
- Date: Thu, 14 Jan 2016 04:44:10 +0000 (UTC)
commit 2f169a493b367359c1cd5366fdd62a14d8db4c25
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jan 13 23:34:03 2016 -0500
color chooser: Set a CSS name
The CSS name for GtkColorChooserWidget is ... colorchooser.
gtk/gtkcolorchooserwidget.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcolorchooserwidget.c b/gtk/gtkcolorchooserwidget.c
index 8677da4..85d6c2b 100644
--- a/gtk/gtkcolorchooserwidget.c
+++ b/gtk/gtkcolorchooserwidget.c
@@ -55,6 +55,10 @@
* The #GtkColorChooserWidget is used in the #GtkColorChooserDialog
* to provide a dialog for selecting colors.
*
+ * # CSS names
+ *
+ * GtkColorChooserWidget has a single CSS node with name colorchooser.
+ *
* Since: 3.4
*/
@@ -699,6 +703,8 @@ gtk_color_chooser_widget_class_init (GtkColorChooserWidgetClass *class)
g_object_class_install_property (object_class, PROP_SHOW_EDITOR,
g_param_spec_boolean ("show-editor", P_("Show editor"), P_("Show editor"),
FALSE, GTK_PARAM_READWRITE));
+
+ gtk_widget_class_set_css_name (GTK_WIDGET_CLASS (class), "colorchooser");
}
/* GtkColorChooser implementation {{{1 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]