[easytag] Ensure that a newly-selected path is visible
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Ensure that a newly-selected path is visible
- Date: Wed, 6 Jul 2016 15:51:31 +0000 (UTC)
commit 3a4a357ff27f059ea9836bf28db6961c7e25cf11
Author: David King <amigadave amigadave com>
Date: Wed Jul 6 16:48:16 2016 +0100
Ensure that a newly-selected path is visible
When a path is selected programatically, such as when loading the initial path
on startup, make sure that the path is visible by first scrolling the view to
the path and then selecting it.
https://bugzilla.gnome.org/show_bug.cgi?id=768470
src/browser.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/browser.c b/src/browser.c
index 5c6f3e0..996183b 100644
--- a/src/browser.c
+++ b/src/browser.c
@@ -1167,10 +1167,10 @@ et_browser_select_dir (EtBrowser *self,
{
gtk_tree_view_expand_to_path (GTK_TREE_VIEW (priv->directory_view),
rootPath);
+ Browser_Tree_Set_Node_Visible (priv->directory_view, rootPath);
/* Select the node to load the corresponding directory. */
gtk_tree_selection_select_path (gtk_tree_view_get_selection (GTK_TREE_VIEW (priv->directory_view)),
rootPath);
- Browser_Tree_Set_Node_Visible (priv->directory_view, rootPath);
gtk_tree_path_free(rootPath);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]