Mercurial > geeqie.yaz
changeset 970:6d4cd1193ab1
removed code for maintaining filelist position, gtk_tree_view itself handles it
better
author | nadvornik |
---|---|
date | Sun, 17 Aug 2008 14:18:51 +0000 |
parents | daabcea563b2 |
children | 33db1ec31e85 |
files | src/view_file_list.c |
diffstat | 1 files changed, 0 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/src/view_file_list.c Sun Aug 17 09:36:02 2008 +0000 +++ b/src/view_file_list.c Sun Aug 17 14:18:51 2008 +0000 @@ -1633,8 +1633,6 @@ { GtkTreeStore *store; gint thumbs; - GtkTreeRowReference *visible_row = NULL; - GtkTreePath *tpath; GList *selected; store = GTK_TREE_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(vf->listview))); @@ -1649,13 +1647,6 @@ return; } - if (GTK_WIDGET_REALIZED(vf->listview) && - gtk_tree_view_get_path_at_pos(GTK_TREE_VIEW(vf->listview), 0, 0, &tpath, NULL, NULL, NULL)) - { - visible_row = gtk_tree_row_reference_new(GTK_TREE_MODEL(store), tpath); - gtk_tree_path_free(tpath); - } - vflist_listview_set_columns(vf->listview, thumbs); selected = vflist_selection_get_list(vf); @@ -1670,17 +1661,6 @@ filelist_free(selected); - if (visible_row) - { - if (gtk_tree_row_reference_valid(visible_row)) - { - tpath = gtk_tree_row_reference_get_path(visible_row); - gtk_tree_view_scroll_to_cell(GTK_TREE_VIEW(vf->listview), tpath, NULL, TRUE, 0.0, 0.0); - gtk_tree_path_free(tpath); - } - gtk_tree_row_reference_free(visible_row); - } - vf_send_update(vf); vflist_thumb_update(vf); }