[gtk+] GtkSpinButton: Stop using gtk_adjustment_value_changed
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkSpinButton: Stop using gtk_adjustment_value_changed
- Date: Sun, 10 May 2015 06:37:20 +0000 (UTC)
commit d90847b20ec52951ebcd2a3d1b565b654056788c
Author: Matthias Clasen <mclasen redhat com>
Date: Sun May 10 02:34:33 2015 -0400
GtkSpinButton: Stop using gtk_adjustment_value_changed
This is just an unnecessary indirection.
gtk/gtkspinbutton.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index 74567f3..c9b98ae 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);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]