[glade3] Fix macro to use gtk_adjustment_set_* instead of the obsolete adj->*



commit a412ba9c7573525afbda34543e730b8bb37d266b
Author: Pablo Castellano <pablog src gnome org>
Date:   Tue Aug 3 22:30:58 2010 +0200

    Fix macro to use gtk_adjustment_set_* instead of the obsolete adj->*

 gladeui/glade-editor-property.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gladeui/glade-editor-property.c b/gladeui/glade-editor-property.c
index a74e8f2..d79d462 100644
--- a/gladeui/glade-editor-property.c
+++ b/gladeui/glade-editor-property.c
@@ -3556,7 +3556,7 @@ glade_eprop_adjustment_ ## p ## _changed (GtkSpinButton *spin,		\
 {									\
 	GtkAdjustment *adj = glade_eprop_adjustment_dup_adj (eprop);	\
 	if (adj == NULL) return;					\
-	adj->p = gtk_spin_button_get_value (spin);			\
+	gtk_adjustment_set_ ## p (adj, gtk_spin_button_get_value (spin));	\
 	glade_eprop_adjustment_prop_changed_common (eprop, adj);	\
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]