Fix for bug 540560.

Patch by Victor Ananjevsky <ananasik at gmail dot com>
This commit is contained in:
Arx Cruz 2011-01-02 22:57:42 -02:00
parent c11ebd60f0
commit ef3a33a142
2 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ zenity_progress_handle_stdin (GIOChannel *channel,
g_string_free (string, TRUE);
}
if (condition != G_IO_IN) {
if ((condition != G_IO_IN) && (condition != G_IO_IN + G_IO_HUP)) {
/* We assume that we are done, so stop the pulsating and de-sensitize the buttons */
GtkWidget *button;

View File

@ -180,7 +180,7 @@ zenity_tree_handle_stdin (GIOChannel *channel,
g_string_free (string, TRUE);
}
if (condition != G_IO_IN) {
if ((condition != G_IO_IN) && (condition != G_IO_IN + G_IO_HUP)) {
g_io_channel_shutdown (channel, TRUE, NULL);
return FALSE;
}