ui/gtk/button.c

branch
newapi
changeset 339
b68b5f984074
parent 313
b679cc6059ab
child 343
54f5d7eb1335
--- a/ui/gtk/button.c	Sun Oct 13 19:41:12 2024 +0200
+++ b/ui/gtk/button.c	Sun Oct 13 21:28:09 2024 +0200
@@ -401,8 +401,8 @@
                 event);
     }
     
-    UiContainer *ct = uic_get_current_container(obj);
-    ct->add(ct, rbutton, FALSE);
+    UI_APPLY_LAYOUT1(current, args);
+    current->container->add(current->container, rbutton, FALSE);
     
     return rbutton;
 }

mercurial