]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkfilechooserdefault.c
Set the location mode when changing the operation mode
[~andy/gtk] / gtk / gtkfilechooserdefault.c
index b302ca227891f231907a5eda8e5500981ba56882..d24c3c110b7ee5bf53eec68af9c71e64848f0e82 100644 (file)
@@ -5243,6 +5243,7 @@ operation_mode_set_browse (GtkFileChooserDefault *impl)
       impl->action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER)
     {
       gtk_widget_show (impl->location_button);
+      location_mode_set (impl, impl->location_mode, TRUE);
 
       if (impl->location_mode == LOCATION_MODE_FILENAME_ENTRY)
        gtk_widget_show (impl->location_entry_box);
@@ -9811,6 +9812,8 @@ shortcuts_activate_iter (GtkFileChooserDefault *impl,
 
       volume = col_data;
 
+      operation_mode_set (impl, OPERATION_MODE_BROWSE);
+
       shortcuts_activate_volume (impl, volume);
     }
   else if (shortcut_type == SHORTCUT_TYPE_FILE)
@@ -9818,6 +9821,8 @@ shortcuts_activate_iter (GtkFileChooserDefault *impl,
       struct ShortcutsActivateData *data;
       GtkFileSystemVolume *volume;
 
+      operation_mode_set (impl, OPERATION_MODE_BROWSE);
+
       volume = _gtk_file_system_get_volume_for_file (impl->file_system, col_data);
 
       data = g_new0 (struct ShortcutsActivateData, 1);