since we are using GIOCondition as flags, check them as flags