[gimp] app: set a CSS name on GimpColorHistory so it can be individually themed
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: set a CSS name on GimpColorHistory so it can be individually themed
- Date: Sun, 10 Jun 2018 14:45:51 +0000 (UTC)
commit 0c555efb7df797efa249a7f9a828e162ace2d692
Author: Michael Natterer <mitch gimp org>
Date: Sun Jun 10 16:13:48 2018 +0200
app: set a CSS name on GimpColorHistory so it can be individually themed
app/widgets/gimpcolorhistory.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/app/widgets/gimpcolorhistory.c b/app/widgets/gimpcolorhistory.c
index a4def1a569..844b8535b8 100644
--- a/app/widgets/gimpcolorhistory.c
+++ b/app/widgets/gimpcolorhistory.c
@@ -108,6 +108,7 @@ gimp_color_history_class_init (GimpColorHistoryClass *klass)
GIMP_TYPE_CONTEXT,
GIMP_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
+
g_object_class_install_property (object_class, PROP_HISTORY_SIZE,
g_param_spec_int ("history-size",
NULL, NULL,
@@ -116,6 +117,8 @@ gimp_color_history_class_init (GimpColorHistoryClass *klass)
GIMP_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
+ gtk_widget_class_set_css_name (GTK_WIDGET_CLASS (klass), "GimpColorHistory");
+
klass->color_selected = NULL;
}
@@ -166,6 +169,7 @@ gimp_color_history_set_property (GObject *object,
case PROP_CONTEXT:
history->context = g_value_get_object (value);
break;
+
case PROP_HISTORY_SIZE:
{
GtkWidget *button;
@@ -233,6 +237,7 @@ gimp_color_history_get_property (GObject *object,
case PROP_CONTEXT:
g_value_set_object (value, history->context);
break;
+
case PROP_HISTORY_SIZE:
g_value_set_int (value, history->history_size);
break;
@@ -243,6 +248,7 @@ gimp_color_history_get_property (GObject *object,
}
}
+
/* Public Functions */
GtkWidget *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]