copy UiList getselection fptr in uic_copy_binding newapi

Fri, 09 Feb 2024 16:52:11 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Fri, 09 Feb 2024 16:52:11 +0100
branch
newapi
changeset 249
4df7c366cff7
parent 248
22257f5f4019
child 250
d2068517fbdd

copy UiList getselection fptr in uic_copy_binding

ui/common/context.c file | annotate | diff | comparison | revisions
ui/ui/toolkit.h file | annotate | diff | comparison | revisions
--- a/ui/common/context.c	Fri Feb 09 15:45:02 2024 +0100
+++ b/ui/common/context.c	Fri Feb 09 16:52:11 2024 +0100
@@ -321,6 +321,7 @@
             if (f->obj) {
                 t->obj = f->obj;
                 t->update = f->update;
+                t->getselection = f->getselection;
             }
 
             UiVar tmp = *from;
--- a/ui/ui/toolkit.h	Fri Feb 09 15:45:02 2024 +0100
+++ b/ui/ui/toolkit.h	Fri Feb 09 16:52:11 2024 +0100
@@ -495,7 +495,7 @@
 
 
 
-UIEXPORT void ui_listselection_free(UiListSelection *selection);
+UIEXPORT void ui_listselection_free(UiListSelection selection);
 
 UIEXPORT UiIcon* ui_icon(const char* name, size_t size);
 UIEXPORT UiIcon* ui_imageicon(const char* file);

mercurial