# HG changeset patch # User Olaf Wintermann # Date 1757613376 -7200 # Node ID fb5f560e81d9ef1dc029d9b67ae4c44570b6600a # Parent 882e49cf7192dbfba4dd6c20c53242583a00e55b rename ui_spinner to ui_spinbox diff -r 882e49cf7192 -r fb5f560e81d9 application/main.c --- a/application/main.c Tue Sep 09 16:14:11 2025 +0200 +++ b/application/main.c Thu Sep 11 19:56:16 2025 +0200 @@ -607,7 +607,7 @@ ui_label(obj, .label = "Label Col 2", .style = UI_LABEL_STYLE_TITLE, .align = UI_ALIGN_RIGHT); ui_newline(obj); - ui_spinner(obj, .step = 5); + ui_spinbox(obj, .step = 5); ui_newline(obj); ui_progressbar(obj, .colspan = 2, .varname = "progress"); diff -r 882e49cf7192 -r fb5f560e81d9 ui/gtk/entry.c --- a/ui/gtk/entry.c Tue Sep 09 16:14:11 2025 +0200 +++ b/ui/gtk/entry.c Thu Sep 11 19:56:16 2025 +0200 @@ -35,7 +35,7 @@ #include "entry.h" -UIWIDGET ui_spinner_create(UiObject *obj, UiSpinnerArgs *args) { +UIWIDGET ui_spinbox_create(UiObject *obj, UiSpinBoxArgs *args) { double min = 0; double max = 1000; diff -r 882e49cf7192 -r fb5f560e81d9 ui/qt/entry.cpp --- a/ui/qt/entry.cpp Tue Sep 09 16:14:11 2025 +0200 +++ b/ui/qt/entry.cpp Thu Sep 11 19:56:16 2025 +0200 @@ -36,7 +36,7 @@ -UIWIDGET ui_spinner_create(UiObject *obj, UiSpinnerArgs *args) { +UIWIDGET ui_spinbox_create(UiObject *obj, UiSpinBoxArgs *args) { UiContainerPrivate *ctn = ui_obj_container(obj); UI_APPLY_LAYOUT(ctn->layout, args); diff -r 882e49cf7192 -r fb5f560e81d9 ui/ui/entry.h --- a/ui/ui/entry.h Tue Sep 09 16:14:11 2025 +0200 +++ b/ui/ui/entry.h Thu Sep 11 19:56:16 2025 +0200 @@ -36,7 +36,7 @@ #endif -typedef struct UiSpinnerArgs { +typedef struct UiSpinBoxArgs { UiBool fill; UiBool hexpand; UiBool vexpand; @@ -58,13 +58,13 @@ void* onchangedata; const int *groups; -} UiSpinnerArgs; +} UiSpinBoxArgs; -UIWIDGET ui_spinner_create(UiObject *obj, UiSpinnerArgs *args); +UIWIDGET ui_spinbox_create(UiObject *obj, UiSpinBoxArgs *args); -#define ui_spinner(obj, ...) ui_spinner_create(obj, &(UiSpinnerArgs){ __VA_ARGS__ } ) +#define ui_spinbox(obj, ...) ui_spinbox_create(obj, &(UiSpinBoxArgs){ __VA_ARGS__ } ) void ui_spinner_setrange(UIWIDGET spinner, double min, double max); void ui_spinner_setdigits(UIWIDGET spinner, int digits);