DEBUG_1("col tab pop cols=%d rows=%d", VFICON(vf)->columns, VFICON(vf)->rows);
}
-#if 0
-static void vficon_sync(ViewFile *vf)
-{
- GtkTreeModel *store;
- GtkTreeIter iter;
- GList *work;
- gint r, c;
- gint valid;
-
- if (VFICON(vf)->rows == 0) return;
-
- store = gtk_tree_view_get_model(GTK_TREE_VIEW(vf->listview));
-
- r = -1;
- c = 0;
-
- valid = gtk_tree_model_iter_children(store, &iter, NULL);
-
- work = vf->list;
- while (work)
- {
- GList *list;
- r++;
- c = 0;
- if (valid)
- {
- gtk_tree_model_get(store, &iter, FILE_COLUMN_POINTER, &list, -1);
- gtk_list_store_set(GTK_LIST_STORE(store), &iter, FILE_COLUMN_POINTER, list, -1);
- }
- else
- {
- list = vficon_add_row(vf, &iter);
- }
-
- while (list)
- {
- IconData *id;
-
- if (work)
- {
- id = work->data;
- work = work->next;
- c++;
- }
- else
- {
- id = NULL;
- }
-
- list->data = id;
- list = list->next;
- }
- if (valid) valid = gtk_tree_model_iter_next(store, &iter);
- }
-
- r++;
- while (valid)
- {
- GList *list;
-
- gtk_tree_model_get(store, &iter, FILE_COLUMN_POINTER, &list, -1);
- valid = gtk_list_store_remove(GTK_LIST_STORE(store), &iter);
- g_list_free(list);
- }
-
- VFICON(vf)->rows = r;
-
- vficon_update_focus(vf);
-}
-#endif
#if 0
static void vficon_sync_idle(ViewFile *vf)