ui/gtk/entry.c

changeset 164
1d912f78fd1d
parent 157
0b33b9396851
child 174
0358f1d9c506
equal deleted inserted replaced
163:b70e2a77dea0 164:1d912f78fd1d
93 gtk_spin_button_set_digits(GTK_SPIN_BUTTON(spin), digits); 93 gtk_spin_button_set_digits(GTK_SPIN_BUTTON(spin), digits);
94 if(var) { 94 if(var) {
95 double value = 0; 95 double value = 0;
96 UiObserver **obs = NULL; 96 UiObserver **obs = NULL;
97 switch(type) { 97 switch(type) {
98 default: break;
98 case UI_VAR_INTEGER: { 99 case UI_VAR_INTEGER: {
99 UiInteger *i = var->value; 100 UiInteger *i = var->value;
100 i->get = ui_spinbutton_getint; 101 i->get = ui_spinbutton_getint;
101 i->set = ui_spinbutton_setint; 102 i->set = ui_spinbutton_setint;
102 i->obj = spin; 103 i->obj = spin;

mercurial