jackdanielz pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=2b65a7ddce9d03a9bb09080de961f9863c685d35

commit 2b65a7ddce9d03a9bb09080de961f9863c685d35
Author: Avi Levin <avi.le...@samsung.com>
Date:   Sun May 10 11:57:14 2015 +0300

    elm_panes: porting evas smart callbacks to eo
---
 src/lib/elm_panes.c  | 8 ++++----
 src/lib/elm_panes.eo | 4 +---
 2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/lib/elm_panes.c b/src/lib/elm_panes.c
index 716f233..335fe95 100644
--- a/src/lib/elm_panes.c
+++ b/src/lib/elm_panes.c
@@ -137,7 +137,7 @@ _on_clicked(void *data,
             const char *emission EINA_UNUSED,
             const char *source EINA_UNUSED)
 {
-   evas_object_smart_callback_call(data, SIG_CLICKED, NULL);
+   eo_do(data, eo_event_callback_call(EVAS_CLICKABLE_INTERFACE_EVENT_CLICKED, 
NULL));
 }
 
 static void
@@ -157,7 +157,7 @@ _on_pressed(void *data,
             const char *emission EINA_UNUSED,
             const char *source EINA_UNUSED)
 {
-   evas_object_smart_callback_call(data, SIG_PRESS, NULL);
+   eo_do(data, eo_event_callback_call(ELM_PANES_EVENT_PRESS, NULL));
 }
 
 static void
@@ -167,11 +167,11 @@ _on_unpressed(void *data,
               const char *source EINA_UNUSED)
 {
    ELM_PANES_DATA_GET(data, sd);
-   evas_object_smart_callback_call(data, SIG_UNPRESS, NULL);
+   eo_do(data, eo_event_callback_call(ELM_PANES_EVENT_UNPRESS, NULL));
 
    if (sd->double_clicked)
      {
-        evas_object_smart_callback_call(data, SIG_DOUBLE_CLICKED, NULL);
+        eo_do(data, 
eo_event_callback_call(EVAS_CLICKABLE_INTERFACE_EVENT_CLICKED_DOUBLE, NULL));
         sd->double_clicked = EINA_FALSE;
      }
 }
diff --git a/src/lib/elm_panes.eo b/src/lib/elm_panes.eo
index ffab1ef..3a9b833 100644
--- a/src/lib/elm_panes.eo
+++ b/src/lib/elm_panes.eo
@@ -1,4 +1,4 @@
-class Elm.Panes (Elm.Layout)
+class Elm.Panes (Elm.Layout, Evas.Clickable_Interface)
 {
    eo_prefix: elm_obj_panes;
    methods {
@@ -276,10 +276,8 @@ class Elm.Panes (Elm.Layout)
       Elm.Layout.content_aliases.get;
    }
    events {
-      clicked;
       press;
       unpress;
-      clicked,double;
    }
 
 }

-- 


Reply via email to