fix ui_customwidget_create (GTK)

Thu, 29 May 2025 13:23:56 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Thu, 29 May 2025 13:23:56 +0200
changeset 596
34866811080d
parent 595
e62047c59658
child 597
fc85ca42a7ce

fix ui_customwidget_create (GTK)

ui/gtk/widget.c file | annotate | diff | comparison | revisions
--- a/ui/gtk/widget.c	Thu May 29 13:23:11 2025 +0200
+++ b/ui/gtk/widget.c	Thu May 29 13:23:56 2025 +0200
@@ -31,12 +31,12 @@
 
 #include "../common/object.h"
 
-UIEXPORT UIWIDGET ui_customwidget_create(UiObject *obj, ui_createwidget_func create_widget, void *userdata, UiWidgetArgs args) {
+UIEXPORT UIWIDGET ui_customwidget_create(UiObject *obj, ui_createwidget_func create_widget, void *userdata, UiWidgetArgs *args) {
     UiObject* current = uic_current_obj(obj);
     
     UIWIDGET widget = create_widget(obj, args, userdata);
     
-    UI_APPLY_LAYOUT1(current, args);
+    UI_APPLY_LAYOUT2(current, args);
     current->container->add(current->container, widget, FALSE);
     
     return widget;

mercurial