summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Williams <andy@andywilliams.me>2016-03-01 21:20:15 +0000
committerAndy Williams <andy@andywilliams.me>2016-03-01 21:20:15 +0000
commit99f6a6adc2cec5e8d65618b615eabc1533e8131b (patch)
treeb5f04d2dd133d057cb64971aa142fae8161517dc
parent4aa4635da41dab5e6e5d06940ae50e88c3a6737c (diff)
downloadefl-99f6a6adc2cec5e8d65618b615eabc1533e8131b.tar.gz
Update to new eo event callback signature
-rw-r--r--legacy/elm_code/src/bin/elm_code_test_main.c10
-rw-r--r--legacy/elm_code/src/lib/widget/elm_code_widget.c14
2 files changed, 9 insertions, 15 deletions
diff --git a/legacy/elm_code/src/bin/elm_code_test_main.c b/legacy/elm_code/src/bin/elm_code_test_main.c
index 8e2c9a0c3d..97e312c333 100644
--- a/legacy/elm_code/src/bin/elm_code_test_main.c
+++ b/legacy/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/legacy/elm_code/src/lib/widget/elm_code_widget.c b/legacy/elm_code/src/lib/widget/elm_code_widget.c
index 145d6b1248..034162845e 100644
--- a/legacy/elm_code/src/lib/widget/elm_code_widget.c
+++ b/legacy/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;