ui/gtk/list.c

branch
newapi
changeset 380
aad99285865c
parent 370
822fcb83bdf1
equal deleted inserted replaced
379:958bae372271 380:aad99285865c
323 renderer, 323 renderer,
324 "text", 324 "text",
325 i + addi, 325 i + addi,
326 NULL); 326 NULL);
327 } 327 }
328
329 int colsz = model->columnsize[i];
330 if(colsz > 0) {
331 gtk_tree_view_column_set_fixed_width(column, colsz);
332 } else if(colsz < 0) {
333 gtk_tree_view_column_set_expand(column, TRUE);
334 }
335
328 gtk_tree_view_column_set_resizable(column, TRUE); 336 gtk_tree_view_column_set_resizable(column, TRUE);
329 gtk_tree_view_append_column(GTK_TREE_VIEW(view), column); 337 gtk_tree_view_append_column(GTK_TREE_VIEW(view), column);
330 } 338 }
331 339
332 //gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(view), FALSE); 340 //gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(view), FALSE);

mercurial