fix menu lists (GTK3) newapi

Sun, 09 Jun 2024 15:42:26 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 09 Jun 2024 15:42:26 +0200
branch
newapi
changeset 284
f93c368518c0
parent 283
bb0b8927f5c0
child 285
034015dfd3de

fix menu lists (GTK3)

ui/gtk/menu.c file | annotate | diff | comparison | revisions
--- a/ui/gtk/menu.c	Sun Jun 09 15:31:07 2024 +0200
+++ b/ui/gtk/menu.c	Sun Jun 09 15:42:26 2024 +0200
@@ -244,8 +244,8 @@
     ls->index = index;
     ls->oldcount = 0;
     
-    // TODO:
-    //ls->list = il->list;
+    UiVar* var = uic_create_var(ui_global_context(), il->varname, UI_VAR_LIST);
+    ls->list = var->value;
     
     ls->callback = il->callback;
     ls->userdata = il->userdata;

mercurial