diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-06-09 09:21:50 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-06-09 13:31:07 -0400 |
commit | 17406635841e51bd813231bef79ff796aea7a8c2 (patch) | |
tree | 29c14a2af1ce5d1d94118f23906f53d30de4d157 /gtk/gtkscale.c | |
parent | f80ff857457a0be7470b545a60a9549acfadb7e8 (diff) | |
download | gtk+-17406635841e51bd813231bef79ff796aea7a8c2.tar.gz |
GtkScale: Use G_PARAM_EXPLICIT_NOTIFY
Diffstat (limited to 'gtk/gtkscale.c')
-rw-r--r-- | gtk/gtkscale.c | 42 |
1 files changed, 19 insertions, 23 deletions
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c index 8c317a2096..aa84e4d4b6 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", |