Revision: 6774
Author: nogu.dev
Date: Sat Sep 11 17:43:13 2010
Log: * helper/pref-gtk-custom-widgets.c
- (sync_value_int): Use gtk_adjustment_get_upper() for GTK+3.
http://code.google.com/p/uim/source/detail?r=6774
Modified:
/trunk/helper/pref-gtk-custom-widgets.c
=======================================
--- /trunk/helper/pref-gtk-custom-widgets.c Sat Sep 11 17:43:05 2010
+++ /trunk/helper/pref-gtk-custom-widgets.c Sat Sep 11 17:43:13 2010
@@ -262,7 +262,7 @@
gtk_widget_set_sensitive(gtk_widget_get_parent(GTK_WIDGET(spin)),
custom->is_active);
if (custom->range->as_int.min != (int) gtk_adjustment_get_lower(adj) ||
- custom->range->as_int.max != (int) adj->upper)
+ custom->range->as_int.max != (int) gtk_adjustment_get_upper(adj))
gtk_spin_button_set_range(spin, custom->range->as_int.min,
custom->range->as_int.max);
if (custom->value->as_int != (int) gtk_spin_button_get_value(spin)) {
gtk_spin_button_set_value(spin, custom->value->as_int);