fix ui/widget.h in case no specific toolkit is used (UI_GENERIC)

Sun, 24 May 2026 16:47:27 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 24 May 2026 16:47:27 +0200
changeset 1140
85fef17b0105
parent 1139
5e60c784ad5b
child 1141
e37824dd7281

fix ui/widget.h in case no specific toolkit is used (UI_GENERIC)

ui/ui/widget.h file | annotate | diff | comparison | revisions
--- a/ui/ui/widget.h	Sun May 24 16:26:27 2026 +0200
+++ b/ui/ui/widget.h	Sun May 24 16:47:27 2026 +0200
@@ -52,6 +52,8 @@
     const char *style_class;
 } UiWidgetArgs;
 
+#ifndef UI_GENERIC
+
 #ifdef UI_GTK
 typedef UIWIDGET (*ui_createwidget_func)(UiObject *obj, UiWidgetArgs *args, void *userdata);
 #elif defined(UI_QT)
@@ -71,6 +73,7 @@
 
 #define ui_customwidget(obj, create_widget, userdata, ...) ui_customwidget_create(obj, create_widget, userdata, &(UiWidgetArgs) { __VA_ARGS__ })
 
+#endif
 
 UIEXPORT UIWIDGET ui_separator_create(UiObject *obj, UiWidgetArgs *args);
 

mercurial