summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@samsung.com>2013-07-16 20:03:33 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-07-16 20:03:48 +0900
commit8db2c018f8163e86ea625336362a4bfdebe6947f (patch)
tree23053cab4d5454828eb6c90a13fdf0312f22aa74 /src/lib
parente939d9a1cecb0d7099399ff350d330442e7fb632 (diff)
edje: take that windows !
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/edje/edje_callbacks.c38
1 files changed, 18 insertions, 20 deletions
diff --git a/src/lib/edje/edje_callbacks.c b/src/lib/edje/edje_callbacks.c
index ad46ee0860..1a7de7eb81 100644
--- a/src/lib/edje/edje_callbacks.c
+++ b/src/lib/edje/edje_callbacks.c
@@ -432,47 +432,45 @@ _edje_pending_timer_cb(void *data)
432 return ECORE_CALLBACK_CANCEL; 432 return ECORE_CALLBACK_CANCEL;
433} 433}
434 434
435static Eo_Callback_Array_Item edje_callbacks[] = { 435EO_CALLBACKS_ARRAY_DEFINE(edje_callbacks, 8,
436 { EVAS_OBJECT_EVENT_HOLD, _edje_hold_signal_cb }, 436 { EVAS_OBJECT_EVENT_HOLD, _edje_hold_signal_cb },
437 { EVAS_OBJECT_EVENT_MOUSE_IN, _edje_mouse_in_signal_cb }, 437 { EVAS_OBJECT_EVENT_MOUSE_IN, _edje_mouse_in_signal_cb },
438 { EVAS_OBJECT_EVENT_MOUSE_OUT, _edje_mouse_out_signal_cb }, 438 { EVAS_OBJECT_EVENT_MOUSE_OUT, _edje_mouse_out_signal_cb },
439 { EVAS_OBJECT_EVENT_MOUSE_DOWN, _edje_mouse_down_signal_cb }, 439 { EVAS_OBJECT_EVENT_MOUSE_DOWN, _edje_mouse_down_signal_cb },
440 { EVAS_OBJECT_EVENT_MOUSE_UP, _edje_mouse_up_signal_cb }, 440 { EVAS_OBJECT_EVENT_MOUSE_UP, _edje_mouse_up_signal_cb },
441 { EVAS_OBJECT_EVENT_MOUSE_MOVE, _edje_mouse_move_signal_cb }, 441 { EVAS_OBJECT_EVENT_MOUSE_MOVE, _edje_mouse_move_signal_cb },
442 { EVAS_OBJECT_EVENT_MOUSE_WHEEL, _edje_mouse_wheel_signal_cb }, 442 { EVAS_OBJECT_EVENT_MOUSE_WHEEL, _edje_mouse_wheel_signal_cb },
443 { NULL, NULL } 443 { NULL, NULL });
444}; 444
445 445EO_CALLBACKS_ARRAY_DEFINE(edje_focus_callbacks, 3,
446static Eo_Callback_Array_Item edje_focus_callbacks[] = { 446 { EVAS_OBJECT_EVENT_FOCUS_IN, _edje_focus_in_signal_cb },
447 { EVAS_OBJECT_EVENT_FOCUS_IN, _edje_focus_in_signal_cb }, 447 { EVAS_OBJECT_EVENT_FOCUS_OUT, _edje_focus_out_signal_cb },
448 { EVAS_OBJECT_EVENT_FOCUS_OUT, _edje_focus_out_signal_cb }, 448 { NULL, NULL });
449 { NULL, NULL }
450};
451 449
452void 450void
453_edje_callbacks_add(Evas_Object *obj, Edje *ed, Edje_Real_Part *rp) 451_edje_callbacks_add(Evas_Object *obj, Edje *ed, Edje_Real_Part *rp)
454{ 452{
455 eo_do(obj, eo_event_callback_array_add(edje_callbacks, ed)); 453 eo_do(obj, eo_event_callback_array_add(edje_callbacks(), ed));
456 evas_object_data_set(obj, "real_part", rp); 454 evas_object_data_set(obj, "real_part", rp);
457} 455}
458 456
459void 457void
460_edje_callbacks_del(Evas_Object *obj, Edje *ed) 458_edje_callbacks_del(Evas_Object *obj, Edje *ed)
461{ 459{
462 eo_do(obj, eo_event_callback_array_del(edje_callbacks, ed)); 460 eo_do(obj, eo_event_callback_array_del(edje_callbacks(), ed));
463 evas_object_data_del(obj, "real_part"); 461 evas_object_data_del(obj, "real_part");
464} 462}
465 463
466void 464void
467_edje_callbacks_focus_add(Evas_Object *obj, Edje *ed, Edje_Real_Part *rp) 465_edje_callbacks_focus_add(Evas_Object *obj, Edje *ed, Edje_Real_Part *rp)
468{ 466{
469 eo_do(obj, eo_event_callback_array_add(edje_focus_callbacks, ed)); 467 eo_do(obj, eo_event_callback_array_add(edje_focus_callbacks(), ed));
470 evas_object_data_set(obj, "real_part", rp); 468 evas_object_data_set(obj, "real_part", rp);
471} 469}
472 470
473void 471void
474_edje_callbacks_focus_del(Evas_Object *obj, Edje *ed) 472_edje_callbacks_focus_del(Evas_Object *obj, Edje *ed)
475{ 473{
476 eo_do(obj, eo_event_callback_array_del(edje_focus_callbacks, ed)); 474 eo_do(obj, eo_event_callback_array_del(edje_focus_callbacks(), ed));
477 evas_object_data_del(obj, "real_part"); 475 evas_object_data_del(obj, "real_part");
478} 476}