ui/gtk/list.c

changeset 80
1a908b060122
parent 71
9e19ac687b9f
--- a/ui/gtk/list.c	Tue Nov 12 15:05:57 2024 +0100
+++ b/ui/gtk/list.c	Wed Nov 13 21:19:55 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