return ecore_evases;
}
-static int
+static Eina_Bool
_ecore_evas_cocoa_event_got_focus(void *data __UNUSED__, int type __UNUSED__, void *event)
{
Ecore_Evas *ee;
ee = _ecore_evas_cocoa_match();
- if (!ee) return 1;
+ if (!ee) return EINA_TRUE;
ee->prop.focused = 1;
- return 0;
+ return EINA_FALSE;
}
static Eina_Bool
return ee;
}
-static int
+static Eina_Bool
_ecore_evas_directfb_event_key_down(void *data __UNUSED__, int type __UNUSED__, void *event)
{
Ecore_Evas *ee;
e = event;
ee = _ecore_evas_directfb_match(e->win);
- if (!ee) return 1; /* pass on event */
+ if (!ee) return EINA_TRUE; /* pass on event */
evas_event_feed_key_down(ee->evas, e->name, e->name, e->string,
e->key_compose, e->time, NULL);
- return 1;
+ return EINA_TRUE;
}
static Eina_Bool
_ecore_fb_ps2_fd = 0;
}
-static int
+static Eina_Bool
_ecore_fb_ps2_fd_handler(void *data __UNUSED__, Ecore_Fd_Handler *fd_handler __UNUSED__)
{
static int prev_x = 0, prev_y = 0, prev_button = 0;
ptr += _ecore_fb_ps2_event_byte_count;
num = sizeof(Ecore_Fb_Ps2_Event) - _ecore_fb_ps2_event_byte_count;
v = read(_ecore_fb_ps2_fd, ptr, num);
- if (v < 0) return 1;
+ if (v < 0) return EINA_TRUE;
_ecore_fb_ps2_event_byte_count += v;
- if (v < num) return 1;
+ if (v < num) return EINA_TRUE;
t = ecore_time_get();
_ecore_fb_ps2_event_byte_count = 0;
if (_ecore_fb_ps2_event.button & 0x10)
prev_button = button;
}
while (v > 0);
- return 1;
+ return EINA_TRUE;
}
/**
* @defgroup Ecore_FB_Click_Group Framebuffer Double Click Functions