diff options
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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; } |