summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2012-05-08 22:14:58 +0200
committerArx Cruz <apcruz@gnome.org>2012-05-08 17:29:42 -0300
commit127c298ac43cbdf3b965002e7e9115571ca1d90d (patch)
treef6705af47004270682099ab8a44a0f00a4ed8dfa /src
parentUpdated Esperanto translation (diff)
downloadzenity-127c298ac43cbdf3b965002e7e9115571ca1d90d.tar.gz
zenity-127c298ac43cbdf3b965002e7e9115571ca1d90d.tar.bz2
zenity-127c298ac43cbdf3b965002e7e9115571ca1d90d.zip
mask the result of g_io_channel_get_flags for the wanted flag
Diffstat (limited to 'src')
-rw-r--r--src/tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tree.c b/src/tree.c
index 721817ec..b347b158 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -120,13 +120,13 @@ zenity_tree_handle_stdin (GIOChannel *channel,
string = g_string_new (NULL);
- while (g_io_channel_get_flags(channel) != G_IO_FLAG_IS_READABLE)
+ while ((g_io_channel_get_flags(channel) & G_IO_FLAG_IS_READABLE) != G_IO_FLAG_IS_READABLE)
;
do {
gint status;
do {
- if (g_io_channel_get_flags(channel) == G_IO_FLAG_IS_READABLE)
+ if (g_io_channel_get_flags(channel) & G_IO_FLAG_IS_READABLE)
status = g_io_channel_read_line_string (channel, string, NULL, &error);
else
return FALSE;
@@ -645,7 +645,7 @@ zenity_tree_dialog_response (GtkWidget *widget, int response, gpointer data)
zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC);
break;
}
- if (channel != NULL && g_io_channel_get_flags (channel) == G_IO_FLAG_IS_READABLE)
+ if (channel != NULL && g_io_channel_get_flags (channel) & G_IO_FLAG_IS_READABLE)
g_io_channel_shutdown (channel, TRUE, NULL);
gtk_main_quit ();
bgstack15