Mercurial > geeqie.yaz
comparison src/view_dir_tree.c @ 1629:f8503019ac38
better implementation of tree_view_row_get_visibility,
gtk_tree_view_set_cursor is not sufficient in some cases, call also
tree_view_row_make_visible
author | nadvornik |
---|---|
date | Sat, 06 Jun 2009 16:14:07 +0000 |
parents | 738b70daa3af |
children |
comparison
equal
deleted
inserted
replaced
1628:738b70daa3af | 1629:f8503019ac38 |
---|---|
718 | 718 |
719 if (!old_tpath || gtk_tree_path_compare(tpath, old_tpath) != 0) | 719 if (!old_tpath || gtk_tree_path_compare(tpath, old_tpath) != 0) |
720 { | 720 { |
721 /* setting the cursor scrolls the view; do not do that unless it is necessary */ | 721 /* setting the cursor scrolls the view; do not do that unless it is necessary */ |
722 gtk_tree_view_set_cursor(GTK_TREE_VIEW(vd->view), tpath, NULL, FALSE); | 722 gtk_tree_view_set_cursor(GTK_TREE_VIEW(vd->view), tpath, NULL, FALSE); |
723 | |
724 /* gtk_tree_view_set_cursor scrolls the window itself, but it sometimes | |
725 does not work (switch from dir_list to dir_tree) */ | |
726 tree_view_row_make_visible(GTK_TREE_VIEW(vd->view), &iter, TRUE); | |
723 } | 727 } |
724 gtk_tree_path_free(tpath); | 728 gtk_tree_path_free(tpath); |
725 gtk_tree_path_free(old_tpath); | 729 gtk_tree_path_free(old_tpath); |
726 } | 730 } |
727 | 731 |