force string model when using static elements in the listview/dropdown (Motif)

Sat, 13 Dec 2025 12:51:57 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 13 Dec 2025 12:51:57 +0100
changeset 999
15c2d9823185
parent 996
61b811c4705f
child 1000
56faeb1772da

force string model when using static elements in the listview/dropdown (Motif)

ui/motif/list.c file | annotate | diff | comparison | revisions
--- a/ui/motif/list.c	Sat Dec 13 12:19:55 2025 +0100
+++ b/ui/motif/list.c	Sat Dec 13 12:51:57 2025 +0100
@@ -119,6 +119,8 @@
             XmStringFree(items[i]);
         }
         free(items);
+        listview->getvalue = getvalue_wrapper;
+        listview->getvaluedata = ui_strmodel_getvalue;
     }
     
     XtAddCallback(
@@ -357,6 +359,8 @@
             XmStringFree(items[i]);
         }
         free(items);
+        listview->getvalue = getvalue_wrapper;
+        listview->getvaluedata = ui_strmodel_getvalue;
     }
     
     XtAddCallback(

mercurial