Test existance of the path after checking for locality, if needed.

2004-03-19  Morten Welinder  <terra@gnome.org>

	* gtk/gtkfilechooserdefault.c
	(gtk_file_chooser_default_set_current_folder): Test existance of
	the path after checking for locality, if needed.
This commit is contained in:
Morten Welinder 2004-03-19 20:18:09 +00:00 committed by Morten Welinder
parent 68030a7ee7
commit f1c18d57d6
6 changed files with 34 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2004-03-19 Morten Welinder <terra@gnome.org>
* gtk/gtkfilechooserdefault.c
(gtk_file_chooser_default_set_current_folder): Test existance of
the path after checking for locality, if needed.
2004-03-19 Federico Mena Quintero <federico@ximian.com>
Fix #137520.

View File

@ -1,3 +1,9 @@
2004-03-19 Morten Welinder <terra@gnome.org>
* gtk/gtkfilechooserdefault.c
(gtk_file_chooser_default_set_current_folder): Test existance of
the path after checking for locality, if needed.
2004-03-19 Federico Mena Quintero <federico@ximian.com>
Fix #137520.

View File

@ -1,3 +1,9 @@
2004-03-19 Morten Welinder <terra@gnome.org>
* gtk/gtkfilechooserdefault.c
(gtk_file_chooser_default_set_current_folder): Test existance of
the path after checking for locality, if needed.
2004-03-19 Federico Mena Quintero <federico@ximian.com>
Fix #137520.

View File

@ -1,3 +1,9 @@
2004-03-19 Morten Welinder <terra@gnome.org>
* gtk/gtkfilechooserdefault.c
(gtk_file_chooser_default_set_current_folder): Test existance of
the path after checking for locality, if needed.
2004-03-19 Federico Mena Quintero <federico@ximian.com>
Fix #137520.

View File

@ -1,3 +1,9 @@
2004-03-19 Morten Welinder <terra@gnome.org>
* gtk/gtkfilechooserdefault.c
(gtk_file_chooser_default_set_current_folder): Test existance of
the path after checking for locality, if needed.
2004-03-19 Federico Mena Quintero <federico@ximian.com>
Fix #137520.

View File

@ -3723,10 +3723,6 @@ gtk_file_chooser_default_set_current_folder (GtkFileChooser *chooser,
{
GtkFileChooserDefault *impl = GTK_FILE_CHOOSER_DEFAULT (chooser);
/* Test validity of path here. */
if (!check_is_folder (impl->file_system, path, error))
return FALSE;
if (impl->local_only &&
!gtk_file_system_path_is_local (impl->file_system, path))
{
@ -3738,6 +3734,10 @@ gtk_file_chooser_default_set_current_folder (GtkFileChooser *chooser,
return FALSE;
}
/* Test validity of path here. */
if (!check_is_folder (impl->file_system, path, error))
return FALSE;
if (!_gtk_path_bar_set_path (GTK_PATH_BAR (impl->browse_path_bar), path, error))
return FALSE;