From d90847b20ec52951ebcd2a3d1b565b654056788c Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 10 May 2015 02:34:33 -0400 Subject: [PATCH] GtkSpinButton: Stop using gtk_adjustment_value_changed This is just an unnecessary indirection. --- gtk/gtkspinbutton.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c index 74567f3902..c9b98ae677 100644 --- a/gtk/gtkspinbutton.c +++ b/gtk/gtkspinbutton.c @@ -2103,6 +2103,7 @@ gtk_spin_button_configure (GtkSpinButton *spin_button, adjustment = priv->adjustment; g_object_freeze_notify (G_OBJECT (spin_button)); + if (priv->adjustment != adjustment) { gtk_spin_button_unset_adjustment (spin_button); @@ -2132,9 +2133,10 @@ gtk_spin_button_configure (GtkSpinButton *spin_button, priv->climb_rate = climb_rate; g_object_notify (G_OBJECT (spin_button), "climb-rate"); } + g_object_thaw_notify (G_OBJECT (spin_button)); - gtk_adjustment_value_changed (adjustment); + gtk_spin_button_value_changed (adjustment, spin_button); } /**