From 6bac2fb94750123b9cbadc337d1434daf80c9889 Mon Sep 17 00:00:00 2001 From: Glynn Foster Date: Mon, 7 Feb 2005 01:56:02 +0000 Subject: [PATCH] If auto-close, close the dialog when the input stream finds an EOF. 2005-02-07 Glynn Foster * src/progress.c: If auto-close, close the dialog when the input stream finds an EOF. --- ChangeLog | 5 +++++ src/progress.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 618f211..ec65d46 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-02-07 Glynn Foster + + * src/progress.c: If auto-close, close the dialog when + the input stream finds an EOF. + 2005-02-07 Glynn Foster * help/C/zenity.xml: Update docs to add the new goption diff --git a/src/progress.c b/src/progress.c index 734dd73..dfe9cef 100644 --- a/src/progress.c +++ b/src/progress.c @@ -152,6 +152,11 @@ zenity_progress_handle_stdin (GIOChannel *channel, if (glade_dialog) g_object_unref (glade_dialog); + if (progress_data->autoclose) { + zen_data->exit_code = zenity_util_return_exit_code (ZENITY_OK); + gtk_main_quit(); + } + g_io_channel_shutdown (channel, TRUE, NULL); return FALSE; }