diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-05-10 02:34:33 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-05-10 02:34:33 -0400 |
commit | d90847b20ec52951ebcd2a3d1b565b654056788c (patch) | |
tree | 557866845304c5e17e7e254a4ba64340bc2c8aee /gtk/gtkspinbutton.c | |
parent | 9a4f2669f704efd6f27087c03d93dbc48d07586b (diff) | |
download | gtk+-d90847b20ec52951ebcd2a3d1b565b654056788c.tar.gz |
GtkSpinButton: Stop using gtk_adjustment_value_changed
This is just an unnecessary indirection.
Diffstat (limited to 'gtk/gtkspinbutton.c')
-rw-r--r-- | gtk/gtkspinbutton.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); } /** |