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.
This commit is contained in:
Glynn Foster 2005-02-07 01:56:02 +00:00 committed by Glynn Foster
parent 717b814028
commit 6bac2fb947
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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.
2005-02-07 Glynn Foster <glynn.foster@sun.com> 2005-02-07 Glynn Foster <glynn.foster@sun.com>
* help/C/zenity.xml: Update docs to add the new goption * help/C/zenity.xml: Update docs to add the new goption

View File

@ -152,6 +152,11 @@ zenity_progress_handle_stdin (GIOChannel *channel,
if (glade_dialog) if (glade_dialog)
g_object_unref (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); g_io_channel_shutdown (channel, TRUE, NULL);
return FALSE; return FALSE;
} }