summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArx Cruz <arxcruz@src.gnome.org>2011-01-02 22:57:42 -0200
committerArx Cruz <arxcruz@src.gnome.org>2011-01-02 22:57:42 -0200
commitef3a33a142620fee850351d14f4a1c191fc6e273 (patch)
treec550c88a7cd10fa3be735d30f3db8826eb069a8f /src
parentAdded UG translation (diff)
downloadzenity-ef3a33a142620fee850351d14f4a1c191fc6e273.tar.gz
zenity-ef3a33a142620fee850351d14f4a1c191fc6e273.tar.bz2
zenity-ef3a33a142620fee850351d14f4a1c191fc6e273.zip
Fix for bug 540560.
Patch by Victor Ananjevsky <ananasik at gmail dot com>
Diffstat (limited to 'src')
-rw-r--r--src/progress.c2
-rw-r--r--src/tree.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/progress.c b/src/progress.c
index 4f1f55ef..29814d91 100644
--- a/src/progress.c
+++ b/src/progress.c
@@ -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;
diff --git a/src/tree.c b/src/tree.c
index 3861e863..7b466674 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -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;
}
bgstack15