rem: model = gtk_tree_store_new ( IMPORT_FILESEL_NUM_COLS, G_TYPE_BOOLEAN, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INT );
add: model = GTK_TREE_MODEL ( gtk_tree_store_new ( IMPORT_FILESEL_NUM_COLS, G_TYPE_BOOLEAN, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INT ));
context: GtkWidget * import_create_file_selection_page ( GtkWidget * assistant ){    GtkWidget * vbox, * paddingbox, * chooser, * hbox, * tree_view, * column, * sw;    GtkCellRenderer *renderer;    GtkTreeModel * model, * list_acc;    int i;    vbox = gtk_vbox_new ( FALSE, 6 );    gtk_container_set_border_width ( GTK_CONTAINER(vbox), 12 );    paddingbox = new_paddingbox_with_title ( vbox, TRUE, "Choose file to import" );        chooser = gtk_button_new_with_label ( "Add file to import" );    gtk_box_pack_start ( GTK_BOX(paddingbox), chooser, FALSE, FALSE, 6 );    g_signal_connect ( G_OBJECT ( chooser ), "clicked", G_CALLBACK ( import_select_file ),		       assistant );    /* Scroll for tree view. */    sw = gtk_scrolled_window_new (NULL, NULL);    gtk_widget_set_usize ( sw, 480, 120 );    gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (sw), GTK_SHADOW_ETCHED_IN);    gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), GTK_POLICY_AUTOMATIC,				    GTK_POLICY_AUTOMATIC);    gtk_box_pack_start ( GTK_BOX(paddingbox), sw, TRUE, TRUE, 6 );    /* Tree view and model. */    model = gtk_tree_store_new ( IMPORT_FILESEL_NUM_COLS, G_TYPE_BOOLEAN, G_TYPE_STRING, 				 G_TYPE_STRING, G_TYPE_INT );    tree_view = gtk_tree_view_new_with_model ( GTK_TREE_MODEL ( model ) );    gtk_container_add ( GTK_CONTAINER ( sw ), tree_view );    /* Toggle column. */    renderer = gtk_cell_renderer_toggle_new ();    g_signal_connect ( renderer, "toggled", G_CALLBACK (import_active_toggled), model);    column = gtk_tree_view_column_new_with_attributes ( _("Import"), renderer,							"active", IMPORT_FILESEL_SELECTED, 							NULL);    gtk_tree_view_append_column (GTK_TREE_VIEW ( tree_view ), column );    /* Type column. */    renderer = gtk_cell_renderer_combo_new ();    g_signal_connect ( G_OBJECT (renderer), "edited", G_CALLBACK ( import_switch_type), 		       model );    list_acc = gtk_list_store_new (1, G_TYPE_STRING);    for ( i = 0 ; i < TYPE_MAX ; i++ )    {	GtkTreeIter iter; 	gtk_list_store_append (list_acc, &iter);	gtk_list_store_set (list_acc, &iter, 0, type_string_representation ( i ), -1);    }    g_object_set ( renderer, 		   "model", list_acc, 		   "text-column", 0, 		   "editable", TRUE, 		   "has-entry", FALSE, 		   NULL );    column = gtk_tree_view_column_new_with_attributes ( _("Type"), renderer,							"text", IMPORT_FILESEL_TYPENAME, 							NULL);    gtk_tree_view_append_column (GTK_TREE_VIEW ( tree_view ), column );    /* Name column. */    renderer = gtk_cell_renderer_text_new ();    column = gtk_tree_view_column_new_with_attributes ( _("File name"), renderer,							"text", IMPORT_FILESEL_FILENAME,							NULL);    gtk_tree_view_append_column (GTK_TREE_VIEW ( tree_view ), column );    g_object_set_data ( G_OBJECT(assistant), "tree_view", model );    g_object_set_data ( G_OBJECT(assistant), "model", model );    g_object_set_data ( G_OBJECT(model), "assistant", assistant );    return vbox;}