ajwillia-ms pushed a commit to branch master.

http://git.enlightenment.org/tools/edi.git/commit/?id=cfdbc6b5423c3b9d31f3fa18cab4ac76a7975c71

commit cfdbc6b5423c3b9d31f3fa18cab4ac76a7975c71
Author: Andy Williams <a...@andywilliams.me>
Date:   Tue Mar 1 21:20:15 2016 +0000

    Update to new eo event callback signature
---
 elm_code/src/bin/elm_code_test_main.c     | 10 ++++------
 elm_code/src/lib/widget/elm_code_widget.c | 14 +++++---------
 2 files changed, 9 insertions(+), 15 deletions(-)

diff --git a/elm_code/src/bin/elm_code_test_main.c 
b/elm_code/src/bin/elm_code_test_main.c
index 8e2c9a0..97e312c 100644
--- a/elm_code/src/bin/elm_code_test_main.c
+++ b/elm_code/src/bin/elm_code_test_main.c
@@ -34,24 +34,22 @@ static void _append_line(Elm_Code_File *file, const char 
*line)
 }
 
 static Eina_Bool
-_elm_code_test_line_clicked_cb(void *data EINA_UNUSED, Eo *obj EINA_UNUSED,
-                               const Eo_Event_Description *desc EINA_UNUSED, 
void *event_info)
+_elm_code_test_line_clicked_cb(void *data EINA_UNUSED, const Eo_Event *event)
 {
    Elm_Code_Line *line;
 
-   line = (Elm_Code_Line *)event_info;
+   line = (Elm_Code_Line *)event->event_info;
 
    printf("CLICKED line %d\n", line->number);
    return EO_CALLBACK_CONTINUE;
 }
 
 static Eina_Bool
-_elm_code_test_line_done_cb(void *data EINA_UNUSED, Eo *obj EINA_UNUSED,
-                            const Eo_Event_Description *desc EINA_UNUSED, void 
*event_info)
+_elm_code_test_line_done_cb(void *data EINA_UNUSED, const Eo_Event *event)
 {
    Elm_Code_Line *line;
 
-   line = (Elm_Code_Line *)event_info;
+   line = (Elm_Code_Line *)event->event_info;
 
    if (line->number == 1)
      elm_code_line_token_add(line, 17, 24, 1, ELM_CODE_TOKEN_TYPE_COMMENT);
diff --git a/elm_code/src/lib/widget/elm_code_widget.c 
b/elm_code/src/lib/widget/elm_code_widget.c
index 145d6b1..0341628 100644
--- a/elm_code/src/lib/widget/elm_code_widget.c
+++ b/elm_code/src/lib/widget/elm_code_widget.c
@@ -474,14 +474,13 @@ _elm_code_widget_fill(Elm_Code_Widget *widget)
 }
 
 static Eina_Bool
-_elm_code_widget_line_cb(void *data, Eo *obj EINA_UNUSED,
-                         const Eo_Event_Description *desc EINA_UNUSED, void 
*event_info EINA_UNUSED)
+_elm_code_widget_line_cb(void *data, const Eo_Event *event)
 {
    Elm_Code_Line *line;
    Elm_Code_Widget *widget;
    Eina_Bool visible;
 
-   line = (Elm_Code_Line *)event_info;
+   line = (Elm_Code_Line *)event->event_info;
    widget = (Elm_Code_Widget *)data;
 
    eo_do(widget, visible = elm_obj_code_widget_line_visible_get(line));
@@ -495,8 +494,7 @@ _elm_code_widget_line_cb(void *data, Eo *obj EINA_UNUSED,
 }
 
 static Eina_Bool
-_elm_code_widget_file_cb(void *data, Eo *obj EINA_UNUSED, const 
Eo_Event_Description *desc EINA_UNUSED,
-                         void *event_info EINA_UNUSED)
+_elm_code_widget_file_cb(void *data, const Eo_Event *event EINA_UNUSED)
 {
    Elm_Code_Widget *widget;
 
@@ -507,8 +505,7 @@ _elm_code_widget_file_cb(void *data, Eo *obj EINA_UNUSED, 
const Eo_Event_Descrip
 }
 
 static Eina_Bool
-_elm_code_widget_selection_cb(void *data, Eo *obj EINA_UNUSED, const 
Eo_Event_Description *desc EINA_UNUSED,
-                              void *event_info EINA_UNUSED)
+_elm_code_widget_selection_cb(void *data, const Eo_Event *event EINA_UNUSED)
 {
    Elm_Code_Widget *widget;
 
@@ -519,8 +516,7 @@ _elm_code_widget_selection_cb(void *data, Eo *obj 
EINA_UNUSED, const Eo_Event_De
 }
 
 static Eina_Bool
-_elm_code_widget_selection_clear_cb(void *data, Eo *obj EINA_UNUSED, const 
Eo_Event_Description *desc EINA_UNUSED,
-                                    void *event_info EINA_UNUSED)
+_elm_code_widget_selection_clear_cb(void *data, const Eo_Event *event 
EINA_UNUSED)
 {
    Elm_Code_Widget *widget;
 

-- 


Reply via email to