mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
Bug 563002 - Doesn't call 'update-preview' on set_filename
Call gtk_tree_view_set_cursor() in addition to gtk_tree_selection_select_iter() when selecting the file in show_and_select_files() so the preview update machinery gets triggered.
This commit is contained in:
parent
e4116c07d7
commit
795c8070db
@ -6367,7 +6367,15 @@ show_and_select_files (GtkFileChooserDefault *impl,
|
||||
|
||||
if (_gtk_file_system_model_iter_is_visible (fsmodel, &iter))
|
||||
{
|
||||
GtkTreePath *path;
|
||||
|
||||
gtk_tree_selection_select_iter (selection, &iter);
|
||||
|
||||
path = gtk_tree_model_get_path (fsmodel, &iter);
|
||||
gtk_tree_view_set_cursor (GTK_TREE_VIEW (impl->browse_files_tree_view),
|
||||
path, NULL, FALSE);
|
||||
gtk_tree_path_free (path);
|
||||
|
||||
selected_a_file = TRUE;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user