[zenity] Fix for bug 540560. Patch by Victor Ananjevsky <ananasik at gmail dot com>
- From: Arx Henrique Pereira da Cruz <arxcruz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [zenity] Fix for bug 540560. Patch by Victor Ananjevsky <ananasik at gmail dot com>
- Date: Mon, 3 Jan 2011 01:03:17 +0000 (UTC)
commit ef3a33a142620fee850351d14f4a1c191fc6e273
Author: Arx Cruz <arxcruz src gnome org>
Date: Sun Jan 2 22:57:42 2011 -0200
Fix for bug 540560.
Patch by Victor Ananjevsky <ananasik at gmail dot com>
src/progress.c | 2 +-
src/tree.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/progress.c b/src/progress.c
index 4f1f55e..29814d9 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 3861e86..7b46667 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]