[gthumb] browser: always expand the loaded folder in the tree view
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] browser: always expand the loaded folder in the tree view
- Date: Sun, 24 Nov 2019 12:27:24 +0000 (UTC)
commit 67c19671514c63f51f11af5bda77868cf26a0b30
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sat Nov 2 12:28:45 2019 +0100
browser: always expand the loaded folder in the tree view
gthumb/gth-browser.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 2ff675e3..bfb252d8 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -1455,7 +1455,7 @@ load_data_continue (LoadData *load_data,
GList *scan;
gboolean is_entry_point = FALSE;
- /* expand the path if it's an entry point */
+ /* Collapse everything else after loading an entry point. */
entry_points = gth_main_get_all_entry_points ();
for (scan = entry_points; scan; scan = scan->next) {
@@ -1463,12 +1463,12 @@ load_data_continue (LoadData *load_data,
if (g_file_equal (file_data->file, load_data->requested_folder->file)) {
gth_folder_tree_collapse_all (GTH_FOLDER_TREE
(browser->priv->folder_tree));
- gtk_tree_view_expand_row (GTK_TREE_VIEW (browser->priv->folder_tree),
path, FALSE);
is_entry_point = TRUE;
break;
}
}
+ gtk_tree_view_expand_row (GTK_TREE_VIEW (browser->priv->folder_tree), path, FALSE);
gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (browser->priv->folder_tree),
path,
NULL,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]