summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2014-04-24 11:04:35 +0300
committerDaniel Zaoui <daniel.zaoui@samsung.com>2014-04-24 11:04:35 +0300
commit7e9795b277e7b94c5871ee07efd23817881a3d86 (patch)
tree852825a6430c79476b434e6600fa18bccb68d3aa
parent98565908f3934708688bc9a0d3f5c049e2347a47 (diff)
downloadelementary-7e9795b277e7b94c5871ee07efd23817881a3d86.tar.gz
FlipSelector: fix callback type.
Evas_Smart_Cb was used in legacy while flipselector_func_type was used in Eo. That made the compilation failing in E.
-rw-r--r--src/lib/elm_flipselector.c4
-rw-r--r--src/lib/elm_flipselector.eo4
-rw-r--r--src/lib/elm_flipselector_eo.h4
3 files changed, 5 insertions, 7 deletions
diff --git a/src/lib/elm_flipselector.c b/src/lib/elm_flipselector.c
index cd09946ef..9c5cd5d20 100644
--- a/src/lib/elm_flipselector.c
+++ b/src/lib/elm_flipselector.c
@@ -629,7 +629,7 @@ _elm_flipselector_flip_prev(Eo *obj EINA_UNUSED, Elm_Flipselector_Data *sd)
}
EOLIAN static Elm_Object_Item *
-_elm_flipselector_item_append(Eo *obj, Elm_Flipselector_Data *sd, const char *label, flipselector_func_type func, const void *data)
+_elm_flipselector_item_append(Eo *obj, Elm_Flipselector_Data *sd, const char *label, Evas_Smart_Cb func, const void *data)
{
Elm_Flipselector_Item *item;
@@ -658,7 +658,7 @@ _elm_flipselector_item_append(Eo *obj, Elm_Flipselector_Data *sd, const char *la
}
EOLIAN static Elm_Object_Item *
-_elm_flipselector_item_prepend(Eo *obj, Elm_Flipselector_Data *sd, const char *label, flipselector_func_type func, void *data)
+_elm_flipselector_item_prepend(Eo *obj, Elm_Flipselector_Data *sd, const char *label, Evas_Smart_Cb func, void *data)
{
Elm_Flipselector_Item *item;
diff --git a/src/lib/elm_flipselector.eo b/src/lib/elm_flipselector.eo
index e4d22a5f3..f06e4f2f4 100644
--- a/src/lib/elm_flipselector.eo
+++ b/src/lib/elm_flipselector.eo
@@ -135,7 +135,7 @@ class Elm_Flipselector (Elm_Layout)
return Elm_Object_Item *;
params {
@in const char *label; /*@ The (text) label of the new item */
- @in flipselector_func_type func; /*@ Convenience callback function to take place when
+ @in Evas_Smart_Cb func; /*@ Convenience callback function to take place when
item is selected */
@in void *data; /*@ Data passed to @p func, above */
}
@@ -174,7 +174,7 @@ class Elm_Flipselector (Elm_Layout)
return Elm_Object_Item *;
params {
@in const char *label; /*@ The (text) label of the new item */
- @in flipselector_func_type func; /*@ Convenience callback function to take place when
+ @in Evas_Smart_Cb func; /*@ Convenience callback function to take place when
item is selected */
@in const void *data; /*@ Data passed to @p func, above */
}
diff --git a/src/lib/elm_flipselector_eo.h b/src/lib/elm_flipselector_eo.h
index 2219554b4..8a2bc0985 100644
--- a/src/lib/elm_flipselector_eo.h
+++ b/src/lib/elm_flipselector_eo.h
@@ -1,3 +1 @@
-typedef void (*flipselector_func_type)(void *, Evas_Object *, void *);
-
-#include "elm_flipselector.eo.h" \ No newline at end of file
+#include "elm_flipselector.eo.h"