diff options
author | Logan Rathbone <poprocks@gmail.com> | 2021-02-13 19:53:09 -0500 |
---|---|---|
committer | Logan Rathbone <poprocks@gmail.com> | 2021-02-13 19:53:09 -0500 |
commit | 6b6ef217972a2776b46406ad421f4ade432c1574 (patch) | |
tree | 20b53445e390f979e9814d3fdd1377eb1f831274 /src/fileselection.c | |
parent | cbc76d2217ece34bd8da7f1fd2aeb623c9f45f72 (diff) | |
download | zenity-6b6ef217972a2776b46406ad421f4ade432c1574.tar.gz |
.ui: use resource; cleanup before commencing meson conversion.
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); } |