filedialog: Rename current-folder to initial-folder

It's not the current one - unlike in GtkFileChooser - because there are
no live updates. So we use a more descriptive name.
This commit is contained in:
Benjamin Otte
2022-12-23 02:42:36 +01:00
committed by Matthias Clasen
parent 8d8e83afa2
commit 26cec4a021
4 changed files with 36 additions and 36 deletions

View File

@@ -228,7 +228,7 @@ open_cb (GtkWidget *button,
dialog = gtk_file_dialog_new ();
gtk_file_dialog_set_title (dialog, "Open file");
cwd = g_file_new_for_path (".");
gtk_file_dialog_set_current_folder (dialog, cwd);
gtk_file_dialog_set_initial_folder (dialog, cwd);
g_object_unref (cwd);
gtk_file_dialog_open (dialog, GTK_WINDOW (self), NULL, NULL, open_response_cb, self);
g_object_unref (dialog);
@@ -337,7 +337,7 @@ save_cb (GtkWidget *button,
dialog = gtk_file_dialog_new ();
gtk_file_dialog_set_title (dialog, "Save constraints");
cwd = g_file_new_for_path (".");
gtk_file_dialog_set_current_folder (dialog, cwd);
gtk_file_dialog_set_initial_folder (dialog, cwd);
g_object_unref (cwd);
gtk_file_dialog_save (dialog,
GTK_WINDOW (gtk_widget_get_root (GTK_WIDGET (button))),