diff options
Diffstat (limited to 'src/fileselection.c')
-rw-r--r-- | src/fileselection.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/fileselection.c b/src/fileselection.c index a44677e..0020b23 100644 --- a/src/fileselection.c +++ b/src/fileselection.c @@ -166,7 +166,8 @@ zenity_fileselection (ZenityData *data, ZenityFileData *file_data) * util function. */ gtk_native_dialog_show (GTK_NATIVE_DIALOG(dialog)); - g_application_hold (g_application_get_default ()); + + zenity_util_gapp_main (NULL); } static void @@ -223,9 +224,5 @@ zenity_fileselection_dialog_response (GtkDialog *dialog, zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC); break; } - - /* Since a native dialog is not a GtkWindow, we can't use our handy - * util function. - */ - g_application_release (g_application_get_default ()); + zenity_util_gapp_quit (NULL); } |