aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--demo-glib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demo-glib.c b/demo-glib.c
index 80f3a7b..bb641f6 100644
--- a/demo-glib.c
+++ b/demo-glib.c
@@ -28,7 +28,7 @@ key_timer (gpointer data)
static gboolean
stdin_io (GIOChannel *source, GIOCondition condition, gpointer data)
{
- if (condition && G_IO_IN)
+ if (condition & G_IO_IN)
{
if (timeout_id)
g_source_remove (timeout_id);