[gtk+] GtkScale: Use G_PARAM_EXPLICIT_NOTIFY
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkScale: Use G_PARAM_EXPLICIT_NOTIFY
- Date: Mon, 9 Jun 2014 17:46:12 +0000 (UTC)
commit 17406635841e51bd813231bef79ff796aea7a8c2
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jun 9 09:21:50 2014 -0400
GtkScale: Use G_PARAM_EXPLICIT_NOTIFY
gtk/gtkscale.c | 42 +++++++++++++++++++-----------------------
1 files changed, 19 insertions(+), 23 deletions(-)
---
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c
index 8c317a2..aa84e4d 100644
--- a/gtk/gtkscale.c
+++ b/gtk/gtkscale.c
@@ -307,20 +307,18 @@ gtk_scale_class_init (GtkScaleClass *class)
g_object_class_install_property (gobject_class,
PROP_DIGITS,
g_param_spec_int ("digits",
- P_("Digits"),
- P_("The number of decimal places that are displayed in
the value"),
- -1,
- MAX_DIGITS,
- 1,
- GTK_PARAM_READWRITE));
+ P_("Digits"),
+ P_("The number of decimal places that are displayed in
the value"),
+ -1, MAX_DIGITS, 1,
+ GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
g_object_class_install_property (gobject_class,
PROP_DRAW_VALUE,
g_param_spec_boolean ("draw-value",
- P_("Draw Value"),
- P_("Whether the current value is displayed as a
string next to the slider"),
- TRUE,
- GTK_PARAM_READWRITE));
+ P_("Draw Value"),
+ P_("Whether the current value is displayed as a
string next to the slider"),
+ TRUE,
+ GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
g_object_class_install_property (gobject_class,
PROP_HAS_ORIGIN,
@@ -328,25 +326,23 @@ gtk_scale_class_init (GtkScaleClass *class)
P_("Has Origin"),
P_("Whether the scale has an origin"),
TRUE,
- GTK_PARAM_READWRITE));
+ GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
g_object_class_install_property (gobject_class,
PROP_VALUE_POS,
g_param_spec_enum ("value-pos",
- P_("Value Position"),
- P_("The position in which the current value is
displayed"),
- GTK_TYPE_POSITION_TYPE,
- GTK_POS_TOP,
- GTK_PARAM_READWRITE));
+ P_("Value Position"),
+ P_("The position in which the current value is
displayed"),
+ GTK_TYPE_POSITION_TYPE,
+ GTK_POS_TOP,
+ GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
gtk_widget_class_install_style_property (widget_class,
- g_param_spec_int ("slider-length",
- P_("Slider Length"),
- P_("Length of scale's slider"),
- 0,
- G_MAXINT,
- 31,
- GTK_PARAM_READABLE));
+ g_param_spec_int ("slider-length",
+ P_("Slider Length"),
+ P_("Length of scale's slider"),
+ 0, G_MAXINT, 31,
+ GTK_PARAM_READABLE));
gtk_widget_class_install_style_property (widget_class,
g_param_spec_int ("value-spacing",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]