diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-01-19 21:06:32 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-01-19 21:06:32 +0000 |
commit | bb0603d44946e45c6a8e6bbec57824a07e7fe024 (patch) | |
tree | 918f3c85a7760b04b7223288cf88b72464658fd9 | |
parent | 58c1ace70ed3fabb672a0fd6ef1fd2d28fd09ce0 (diff) | |
download | gdk-pixbuf-bb0603d44946e45c6a8e6bbec57824a07e7fe024.tar.gz |
In save mode, don't return paths containing nonexisting directories.
2005-01-19 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
In save mode, don't return paths containing nonexisting
directories. (#162443, Jean Marie Favreau)
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 4 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 4 | ||||
-rw-r--r-- | gtk/gtkfilechooserdefault.c | 14 |
4 files changed, 25 insertions, 1 deletions
@@ -1,5 +1,9 @@ 2005-01-19 Matthias Clasen <mclasen@redhat.com> + * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond): + In save mode, don't return paths containing nonexisting + directories. (#162443, Jean Marie Favreau) + * gtk/gtkobject.c (gtk_object_add_arg_type): Use GLib limit macros to avoid sparse warnings. Pointed out by Kjartan Maraas. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 2c68aa76d..4e7a37b55 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,9 @@ 2005-01-19 Matthias Clasen <mclasen@redhat.com> + * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond): + In save mode, don't return paths containing nonexisting + directories. (#162443, Jean Marie Favreau) + * gtk/gtkobject.c (gtk_object_add_arg_type): Use GLib limit macros to avoid sparse warnings. Pointed out by Kjartan Maraas. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 2c68aa76d..4e7a37b55 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,9 @@ 2005-01-19 Matthias Clasen <mclasen@redhat.com> + * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond): + In save mode, don't return paths containing nonexisting + directories. (#162443, Jean Marie Favreau) + * gtk/gtkobject.c (gtk_object_add_arg_type): Use GLib limit macros to avoid sparse warnings. Pointed out by Kjartan Maraas. diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 110da70ec..91ba27d47 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -5370,7 +5370,19 @@ gtk_file_chooser_default_should_respond (GtkFileChooserEmbed *chooser_embed) retval = FALSE; } else - retval = TRUE; + { + /* check that everything up to the last component exists */ + gtk_file_path_free (path); + path = gtk_file_path_copy (_gtk_file_chooser_entry_get_current_folder (entry)); + is_folder = check_is_folder (impl->file_system, path, NULL); + if (!is_folder) + { + change_folder_and_display_error (impl, path); + retval = FALSE; + } + else + retval = TRUE; + } gtk_file_path_free (path); return retval; |