diff options
Diffstat (limited to 'src/tab.c')
-rw-r--r-- | src/tab.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -176,11 +176,9 @@ create_tab_list(MqTab *tab) GtkCellRenderer *cell_renderer; GtkWidget *scrolled_window; - tree_view = gtk_tree_view_new(); + tree_view = gtk_tree_view_new_with_model(create_tree_model(tab)); tree_selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(tree_view)); gtk_tree_selection_set_mode(tree_selection, GTK_SELECTION_BROWSE); - gtk_tree_view_set_model(GTK_TREE_VIEW(tree_view), - create_tree_model(tab)); gtk_tree_selection_select_path(tree_selection, gtk_tree_path_new_from_indices( mq_window_get_current_tab(tab->window) - 1, -1)); |