diff --git a/unix/datetimepicker.c b/unix/datetimepicker.c index 0c0dba8a..94fa6b9a 100644 --- a/unix/datetimepicker.c +++ b/unix/datetimepicker.c @@ -46,16 +46,6 @@ struct dateTimePickerWidgetClass { G_DEFINE_TYPE(dateTimePickerWidget, dateTimePickerWidget, GTK_TYPE_TOGGLE_BUTTON) -struct uiDateTimePicker { - uiUnixControl c; - GtkWidget *widget; - dateTimePickerWidget *d; - void (*onChanged)(uiDateTimePicker *, void *); - void *onChangedData; -}; - -uiUnixControlAllDefaults(uiDateTimePicker) - static int realSpinValue(GtkSpinButton *spinButton) { GtkAdjustment *adj; @@ -560,6 +550,16 @@ static void dateTimePickerWidget_class_init(dateTimePickerWidgetClass *class) G_TYPE_NONE, 0); } +struct uiDateTimePicker { + uiUnixControl c; + GtkWidget *widget; + dateTimePickerWidget *d; + void (*onChanged)(uiDateTimePicker *, void *); + void *onChangedData; +}; + +uiUnixControlAllDefaults(uiDateTimePicker) + static void defaultOnChanged(uiDateTimePicker *d, void *data) { // do nothing