Do not release the GFile prematurely

Otherwise we won't be able to access it to get the URI for the
GtkPrinterOption.

This fixes a regression introduced in commit 5f070ff233.
This commit is contained in:
Emmanuele Bassi 2020-05-01 11:08:41 +01:00
parent e8c4b8338f
commit 717d4abebb

View File

@ -480,8 +480,6 @@ dialog_response_callback (GtkDialog *dialog,
g_free (filename_short);
g_object_unref (info);
}
g_object_unref (new_location);
}
gtk_window_destroy (GTK_WINDOW (dialog));
@ -544,11 +542,10 @@ filesave_choose_cb (GtkWidget *button,
}
g_signal_connect (dialog, "response",
G_CALLBACK (dialog_response_callback), widget);
G_CALLBACK (dialog_response_callback),
widget);
gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_window_present (GTK_WINDOW (dialog));
G_GNUC_END_IGNORE_DEPRECATIONS
}
static gchar *