ui/gtk/list.c

branch
newapi
changeset 380
aad99285865c
parent 370
822fcb83bdf1
--- a/ui/gtk/list.c	Tue Nov 12 14:58:03 2024 +0100
+++ b/ui/gtk/list.c	Wed Nov 13 21:30:18 2024 +0100
@@ -325,6 +325,14 @@
                 i + addi,
                 NULL);
         }
+        
+        int colsz = model->columnsize[i];
+        if(colsz > 0) {
+            gtk_tree_view_column_set_fixed_width(column, colsz);
+        } else if(colsz < 0) {
+            gtk_tree_view_column_set_expand(column, TRUE);
+        }
+        
         gtk_tree_view_column_set_resizable(column, TRUE);
         gtk_tree_view_append_column(GTK_TREE_VIEW(view), column);
     }

mercurial