rename ui_spinner to ui_spinbox

Thu, 11 Sep 2025 19:56:16 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Thu, 11 Sep 2025 19:56:16 +0200
changeset 754
fb5f560e81d9
parent 753
882e49cf7192
child 755
9f62ec2c0cf0

rename ui_spinner to ui_spinbox

application/main.c file | annotate | diff | comparison | revisions
ui/gtk/entry.c file | annotate | diff | comparison | revisions
ui/qt/entry.cpp file | annotate | diff | comparison | revisions
ui/ui/entry.h file | annotate | diff | comparison | revisions
--- 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");
--- 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;
     
--- 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);
     
--- 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);

mercurial