projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6c1cbc
)
file chooser: Ensure a folder is loaded when browsing
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 6 Apr 2015 02:27:23 +0000
(22:27 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 6 Apr 2015 02:27:23 +0000
(22:27 -0400)
Just showing an empty list when the user hits Ctrl-l in
recent files is not very useful. Load the home directory
instead.
gtk/gtkfilechooserwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkfilechooserwidget.c
b/gtk/gtkfilechooserwidget.c
index 836cbb9e6e4e89cd9a22efc689e6a0e16761d8f9..8fada3b68342224a033fe3907616573012d5c9d9 100644
(file)
--- a/
gtk/gtkfilechooserwidget.c
+++ b/
gtk/gtkfilechooserwidget.c
@@
-6965,6
+6965,8
@@
location_popup_handler (GtkFileChooserWidget *impl,
operation_mode_set (impl, OPERATION_MODE_BROWSE);
if (priv->current_folder)
change_folder_and_display_error (impl, priv->current_folder, FALSE);
+ else
+ switch_to_home_dir (impl);
}
if (priv->action == GTK_FILE_CHOOSER_ACTION_OPEN ||