Fix condition in demo-glib.c
This commit is contained in:
parent
258691135f
commit
c1251f3978
|
@ -28,7 +28,7 @@ key_timer (gpointer data)
|
||||||
static gboolean
|
static gboolean
|
||||||
stdin_io (GIOChannel *source, GIOCondition condition, gpointer data)
|
stdin_io (GIOChannel *source, GIOCondition condition, gpointer data)
|
||||||
{
|
{
|
||||||
if (condition && G_IO_IN)
|
if (condition & G_IO_IN)
|
||||||
{
|
{
|
||||||
if (timeout_id)
|
if (timeout_id)
|
||||||
g_source_remove (timeout_id);
|
g_source_remove (timeout_id);
|
||||||
|
|
Loading…
Reference in New Issue