From 220d130c0f490f84d03ca7fe478297d3fa2d2e6b Mon Sep 17 00:00:00 2001 From: Daniel Boles Date: Thu, 22 Jun 2023 22:33:14 +0100 Subject: [PATCH] =?UTF-8?q?FileDialog:=20initial-file=20didn=CA=BCt=20set?= =?UTF-8?q?=20initial-folder?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We always set :initial-folder to NULL and then notified about that, instead of setting it to the folder of the :initial-file as we say. --- gtk/gtkfiledialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkfiledialog.c b/gtk/gtkfiledialog.c index 746a54cb3d..6735833754 100644 --- a/gtk/gtkfiledialog.c +++ b/gtk/gtkfiledialog.c @@ -703,7 +703,7 @@ gtk_file_dialog_set_initial_file (GtkFileDialog *self, if (folder == NULL) goto invalid_file; - if (g_set_object (&self->initial_folder, NULL)) + if (g_set_object (&self->initial_folder, folder)) g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_INITIAL_FOLDER]); info = g_file_query_info (file, G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME, 0, NULL, NULL);