ui/gtk/entry.c

changeset 760
396caea0234a
parent 759
5e17960fedc8
child 761
b963af4aac40
equal deleted inserted replaced
759:5e17960fedc8 760:396caea0234a
34 #include "container.h" 34 #include "container.h"
35 #include "entry.h" 35 #include "entry.h"
36 36
37 37
38 UIWIDGET ui_spinbox_create(UiObject *obj, UiSpinBoxArgs *args) { 38 UIWIDGET ui_spinbox_create(UiObject *obj, UiSpinBoxArgs *args) {
39 double min = 0; 39 double min = args->min;
40 double max = 1000; 40 double max = args->max != 0 ? args->max : 1000;
41 41
42 UiObject* current = uic_current_obj(obj); 42 UiObject* current = uic_current_obj(obj);
43 43
44 UiVar *var = NULL; 44 UiVar *var = NULL;
45 UiVarType vartype = 0; 45 UiVarType vartype = 0;

mercurial