ui/gtk/list.c

branch
newapi
changeset 350
70305d427f25
parent 339
b68b5f984074
--- a/ui/gtk/list.c	Wed Oct 23 17:16:51 2024 +0200
+++ b/ui/gtk/list.c	Fri Oct 25 15:37:02 2024 +0200
@@ -370,7 +370,9 @@
 
     
     GtkTreeSelection *selection = gtk_tree_view_get_selection (GTK_TREE_VIEW(view));
-    gtk_tree_selection_set_mode(selection, GTK_SELECTION_MULTIPLE);
+    if(args.multiselection) {
+        gtk_tree_selection_set_mode(selection, GTK_SELECTION_MULTIPLE);
+    }
     
     // add widget to the current container
     GtkWidget *scroll_area = SCROLLEDWINDOW_NEW();

mercurial