Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
GNOME
gThumb
Commits
67c19671
Commit
67c19671
authored
Nov 02, 2019
by
Paolo Bacchilega
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
browser: always expand the loaded folder in the tree view
parent
3bf0abb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
gthumb/gth-browser.c
gthumb/gth-browser.c
+2
-2
No files found.
gthumb/gth-browser.c
View file @
67c19671
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment