Fix for bug 540560.
Patch by Victor Ananjevsky <ananasik at gmail dot com>
This commit is contained in:
parent
c11ebd60f0
commit
ef3a33a142
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user