Set the location mode when changing the operation mode

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
This commit is contained in:
Federico Mena Quintero 2011-07-27 18:41:23 -05:00
parent 80d0efd94a
commit 9112cb4dfa

View 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);