82 max = r->max; |
82 max = r->max; |
83 } |
83 } |
84 if(step == 0) { |
84 if(step == 0) { |
85 step = 1; |
85 step = 1; |
86 } |
86 } |
|
87 #ifdef UI_GTK2LEGACY |
|
88 if(min == max) { |
|
89 max = min + 1; |
|
90 } |
|
91 #endif |
87 GtkWidget *spin = gtk_spin_button_new_with_range(min, max, step); |
92 GtkWidget *spin = gtk_spin_button_new_with_range(min, max, step); |
88 gtk_spin_button_set_digits(GTK_SPIN_BUTTON(spin), digits); |
93 gtk_spin_button_set_digits(GTK_SPIN_BUTTON(spin), digits); |
89 if(var) { |
94 if(var) { |
90 double value = 0; |
95 double value = 0; |
91 UiObserver **obs = NULL; |
96 UiObserver **obs = NULL; |