386 g_signal_connect(factory, "bind", G_CALLBACK(column_factory_bind), col); |
386 g_signal_connect(factory, "bind", G_CALLBACK(column_factory_bind), col); |
387 |
387 |
388 GtkColumnViewColumn *column = gtk_column_view_column_new(model->titles[i], factory); |
388 GtkColumnViewColumn *column = gtk_column_view_column_new(model->titles[i], factory); |
389 gtk_column_view_column_set_resizable(column, true); |
389 gtk_column_view_column_set_resizable(column, true); |
390 gtk_column_view_append_column(GTK_COLUMN_VIEW(view), column); |
390 gtk_column_view_append_column(GTK_COLUMN_VIEW(view), column); |
|
391 |
|
392 int size = model->columnsize[i]; |
|
393 if(size > 0) { |
|
394 gtk_column_view_column_set_fixed_width(column, size); |
|
395 } else if(size < 0) { |
|
396 gtk_column_view_column_set_expand(column, TRUE); |
|
397 } |
391 } |
398 } |
392 |
399 |
393 // bind listview to list |
400 // bind listview to list |
394 if(var && var->value) { |
401 if(var && var->value) { |
395 UiList *list = var->value; |
402 UiList *list = var->value; |