diff options
author | Glynn Foster <glynn.foster@sun.com> | 2005-02-07 01:56:02 +0000 |
---|---|---|
committer | Glynn Foster <gman@src.gnome.org> | 2005-02-07 01:56:02 +0000 |
commit | 6bac2fb94750123b9cbadc337d1434daf80c9889 (patch) | |
tree | 38b5239e4b98e72f21a04ec89423395282201c2b /src/progress.c | |
parent | Update docs to add the new goption help stuff. Update to be in line with (diff) | |
download | zenity-6bac2fb94750123b9cbadc337d1434daf80c9889.tar.gz zenity-6bac2fb94750123b9cbadc337d1434daf80c9889.tar.bz2 zenity-6bac2fb94750123b9cbadc337d1434daf80c9889.zip |
If auto-close, close the dialog when the input stream finds an EOF.
2005-02-07 Glynn Foster <glynn.foster@sun.com>
* src/progress.c: If auto-close, close the dialog when
the input stream finds an EOF.
Diffstat (limited to 'src/progress.c')
-rw-r--r-- | src/progress.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/progress.c b/src/progress.c index 734dd732..dfe9cef1 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; } |