summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/util.c b/src/util.c
index 7072c250..37845a0b 100644
--- a/src/util.c
+++ b/src/util.c
@@ -411,9 +411,14 @@ zenity_util_show_dialog (GtkWidget *dialog)
}
gboolean
-zenity_util_timeout_handle (void)
+zenity_util_timeout_handle (gpointer data)
{
- gtk_main_quit();
- exit(ZENITY_TIMEOUT);
+ GtkDialog *dialog = GTK_DIALOG(data);
+ if(dialog != NULL)
+ gtk_dialog_response(dialog, GTK_RESPONSE_OK);
+ else {
+ gtk_main_quit();
+ exit(ZENITY_TIMEOUT);
+ }
return FALSE;
}
bgstack15