#include <dlog.h>
#include <livebox-errno.h>
+#include <livebox-service.h>
#include "livebox.h"
evas_event_feed_mouse_out(e, timestamp + 0.01f, NULL); /* + 0.1f just for fake event */
break;
case BUFFER_EVENT_HIGHLIGHT:
- if (!parent_elm)
+ if (!parent_elm) {
+ ret = LB_ACCESS_STATUS_ERROR;
break;
+ }
action_type = ELM_ACCESS_ACTION_HIGHLIGHT;
action_info.x = ix;
action_info.y = iy;
ret = (ret == EINA_FALSE) ? LB_ACCESS_STATUS_ERROR : LB_ACCESS_STATUS_DONE;
break;
case BUFFER_EVENT_HIGHLIGHT_NEXT:
- if (!parent_elm)
+ if (!parent_elm) {
+ ret = LB_ACCESS_STATUS_ERROR;
break;
+ }
action_type = ELM_ACCESS_ACTION_HIGHLIGHT_NEXT;
action_info.highlight_cycle = EINA_FALSE;
ret = elm_access_action(parent_elm, action_type, &action_info);
ret = (ret == EINA_FALSE) ? LB_ACCESS_STATUS_LAST : LB_ACCESS_STATUS_DONE;
break;
case BUFFER_EVENT_HIGHLIGHT_PREV:
- if (!parent_elm)
+ if (!parent_elm) {
+ ret = LB_ACCESS_STATUS_ERROR;
break;
+ }
action_type = ELM_ACCESS_ACTION_HIGHLIGHT_PREV;
action_info.highlight_cycle = EINA_FALSE;
ret = elm_access_action(parent_elm, action_type, &action_info);
ret = (ret == EINA_FALSE) ? LB_ACCESS_STATUS_FIRST : LB_ACCESS_STATUS_DONE;
break;
case BUFFER_EVENT_ACTIVATE:
- if (!parent_elm)
+ if (!parent_elm) {
+ ret = LB_ACCESS_STATUS_ERROR;
break;
+ }
action_type = ELM_ACCESS_ACTION_ACTIVATE;
ret = elm_access_action(parent_elm, action_type, &action_info);
ret = (ret == EINA_FALSE) ? LB_ACCESS_STATUS_ERROR : LB_ACCESS_STATUS_DONE;
break;
case BUFFER_EVENT_ACTION_UP:
- if (!parent_elm)
+ if (!parent_elm) {
+ ret = LB_ACCESS_STATUS_ERROR;
break;
+ }
action_type = ELM_ACCESS_ACTION_UP;
ret = elm_access_action(parent_elm, action_type, &action_info);
ret = (ret == EINA_FALSE) ? LB_ACCESS_STATUS_ERROR : LB_ACCESS_STATUS_DONE;
break;
case BUFFER_EVENT_ACTION_DOWN:
- if (!parent_elm)
+ if (!parent_elm) {
+ ret = LB_ACCESS_STATUS_ERROR;
break;
+ }
action_type = ELM_ACCESS_ACTION_DOWN;
ret = elm_access_action(parent_elm, action_type, &action_info);
ret = (ret == EINA_FALSE) ? LB_ACCESS_STATUS_ERROR : LB_ACCESS_STATUS_DONE;
break;
case BUFFER_EVENT_SCROLL_UP:
- if (!parent_elm)
+ if (!parent_elm) {
+ ret = LB_ACCESS_STATUS_ERROR;
break;
+ }
action_type = ELM_ACCESS_ACTION_SCROLL;
action_info.x = ix;
action_info.y = iy;
ret = (ret == EINA_FALSE) ? LB_ACCESS_STATUS_ERROR : LB_ACCESS_STATUS_DONE;
break;
case BUFFER_EVENT_SCROLL_MOVE:
- if (!parent_elm)
+ if (!parent_elm) {
+ ret = LB_ACCESS_STATUS_ERROR;
break;
+ }
action_info.x = ix;
action_info.y = iy;
action_info.mouse_type = 1;
ret = (ret == EINA_FALSE) ? LB_ACCESS_STATUS_ERROR : LB_ACCESS_STATUS_DONE;
break;
case BUFFER_EVENT_SCROLL_DOWN:
- if (!parent_elm)
+ if (!parent_elm) {
+ ret = LB_ACCESS_STATUS_ERROR;
break;
+ }
action_info.mouse_type = 2;
ret = elm_access_action(parent_elm, action_type, &action_info);
ret = (ret == EINA_FALSE) ? LB_ACCESS_STATUS_ERROR : LB_ACCESS_STATUS_DONE;
break;
case BUFFER_EVENT_UNHIGHLIGHT:
- if (!parent_elm)
+ if (!parent_elm) {
+ ret = LB_ACCESS_STATUS_ERROR;
break;
+ }
action_type = ELM_ACCESS_ACTION_UNHIGHLIGHT;
ret = elm_access_action(parent_elm, action_type, &action_info);
ret = (ret == EINA_FALSE) ? LB_ACCESS_STATUS_ERROR : LB_ACCESS_STATUS_DONE;