summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlynn Foster <glynn.foster@sun.com>2005-02-07 11:16:23 +0000
committerGlynn Foster <gman@src.gnome.org>2005-02-07 11:16:23 +0000
commite4712c2efd0a01628ec3709499bb04de40e2b288 (patch)
treed98dda012e530f3f946d5b9fbbab4b4947d0d024
parent6b6ebbecc1c380704532786faf08852602063563 (diff)
downloadzenity-e4712c2efd0a01628ec3709499bb04de40e2b288.tar.gz
Backport the progress dialog fix for auto-closing when pulsating.gnome-2-8
2005-02-08 Glynn Foster <glynn.foster@sun.com> * src/progress.c: Backport the progress dialog fix for auto-closing when pulsating.
-rw-r--r--ChangeLog5
-rw-r--r--src/progress.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index aed1fda..302e8a1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-02-08 Glynn Foster <glynn.foster@sun.com>
+
+ * src/progress.c: Backport the progress dialog
+ fix for auto-closing when pulsating.
+
2004-12-08 Glynn Foster <glynn.foster@sun.com>
* configure.in: post release bump
diff --git a/src/progress.c b/src/progress.c
index c055baf..a5cd9a7 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;
}