forked from enlightenment/enlightenment
Formatting & Whitespace Cleanup (No Code Changes).
SVN revision: 41430
This commit is contained in:
parent
7b2158cfe6
commit
9e0827a761
|
@ -13,8 +13,8 @@ typedef struct _E_Pointer_Stack E_Pointer_Stack;
|
|||
|
||||
struct _E_Pointer_Stack
|
||||
{
|
||||
void *obj;
|
||||
const char *type;
|
||||
void *obj;
|
||||
const char *type;
|
||||
};
|
||||
|
||||
static Eina_List *_e_pointers = NULL;
|
||||
|
@ -40,10 +40,22 @@ static int _e_pointer_cb_idle_poller(void *data);
|
|||
EAPI int
|
||||
e_pointer_init(void)
|
||||
{
|
||||
handlers = eina_list_append(handlers, ecore_event_handler_add(ECORE_EVENT_MOUSE_BUTTON_DOWN, _e_pointer_cb_mouse_down, NULL));
|
||||
handlers = eina_list_append(handlers, ecore_event_handler_add(ECORE_EVENT_MOUSE_BUTTON_UP, _e_pointer_cb_mouse_up, NULL));
|
||||
handlers = eina_list_append(handlers, ecore_event_handler_add(ECORE_EVENT_MOUSE_MOVE, _e_pointer_cb_mouse_move, NULL));
|
||||
handlers = eina_list_append(handlers, ecore_event_handler_add(ECORE_EVENT_MOUSE_WHEEL, _e_pointer_cb_mouse_wheel, NULL));
|
||||
handlers =
|
||||
eina_list_append(handlers,
|
||||
ecore_event_handler_add(ECORE_EVENT_MOUSE_BUTTON_DOWN,
|
||||
_e_pointer_cb_mouse_down, NULL));
|
||||
handlers =
|
||||
eina_list_append(handlers,
|
||||
ecore_event_handler_add(ECORE_EVENT_MOUSE_BUTTON_UP,
|
||||
_e_pointer_cb_mouse_up, NULL));
|
||||
handlers =
|
||||
eina_list_append(handlers,
|
||||
ecore_event_handler_add(ECORE_EVENT_MOUSE_MOVE,
|
||||
_e_pointer_cb_mouse_move, NULL));
|
||||
handlers =
|
||||
eina_list_append(handlers,
|
||||
ecore_event_handler_add(ECORE_EVENT_MOUSE_WHEEL,
|
||||
_e_pointer_cb_mouse_wheel, NULL));
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -58,7 +70,6 @@ e_pointer_shutdown(void)
|
|||
handlers = eina_list_remove_list(handlers, handlers);
|
||||
ecore_event_handler_del(h);
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -95,7 +106,6 @@ e_pointers_size_set(int size)
|
|||
Eina_List *l;
|
||||
|
||||
if (!e_config->show_cursor) return;
|
||||
|
||||
for (l = _e_pointers; l; l = l->next)
|
||||
{
|
||||
E_Pointer *p;
|
||||
|
@ -162,7 +172,6 @@ e_pointer_type_push(E_Pointer *p, void *obj, const char *type)
|
|||
stack->obj = p->obj;
|
||||
p->stack = eina_list_prepend(p->stack, stack);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
EAPI void
|
||||
|
@ -174,7 +183,6 @@ e_pointer_type_pop(E_Pointer *p, void *obj, const char *type)
|
|||
for (l = p->stack; l; l = l->next)
|
||||
{
|
||||
stack = l->data;
|
||||
|
||||
if ((stack->obj == obj) &&
|
||||
((!type) || (!strcmp(stack->type, type))))
|
||||
{
|
||||
|
@ -208,8 +216,8 @@ EAPI void
|
|||
e_pointer_idler_before(void)
|
||||
{
|
||||
Eina_List *l;
|
||||
if (!e_config->show_cursor) return;
|
||||
|
||||
if (!e_config->show_cursor) return;
|
||||
for (l = _e_pointers; l; l = l->next)
|
||||
{
|
||||
E_Pointer *p;
|
||||
|
@ -343,7 +351,6 @@ _e_pointer_free(E_Pointer *p)
|
|||
}
|
||||
|
||||
if (p->type) eina_stringshare_del(p->type);
|
||||
|
||||
if (p->idle_timer) ecore_timer_del(p->idle_timer);
|
||||
if (p->idle_poller) ecore_poller_del(p->idle_poller);
|
||||
|
||||
|
@ -396,7 +403,8 @@ _e_pointer_type_set(E_Pointer *p, const char *type)
|
|||
if (!e_theme_edje_object_set(o, "base/theme/pointer", cursor))
|
||||
goto fallback;
|
||||
}
|
||||
edje_object_part_swallow(p->pointer_object, "e.swallow.hotspot", p->hot_object);
|
||||
edje_object_part_swallow(p->pointer_object, "e.swallow.hotspot",
|
||||
p->hot_object);
|
||||
edje_object_part_geometry_get(p->pointer_object, "e.swallow.hotspot",
|
||||
&x, &y, NULL, NULL);
|
||||
if ((p->hot.x != x) || (p->hot.y != y))
|
||||
|
@ -638,8 +646,7 @@ _e_pointer_cb_idle_timer_wait(void *data)
|
|||
if ((e_powersave_mode_get() >= E_POWERSAVE_MODE_MEDIUM) ||
|
||||
(!e_config->idle_cursor))
|
||||
{
|
||||
if (p->idle_poller)
|
||||
ecore_poller_del(p->idle_poller);
|
||||
if (p->idle_poller) ecore_poller_del(p->idle_poller);
|
||||
p->idle_poller = NULL;
|
||||
p->idle_timer = NULL;
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue