From: Daniel Zaoui Date: Thu, 24 Apr 2014 08:04:35 +0000 (+0300) Subject: FlipSelector: fix callback type. X-Git-Tag: v1.10.0-alpha1~44 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7e9795b277e7b94c5871ee07efd23817881a3d86;p=platform%2Fupstream%2Felementary.git 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. --- diff --git a/src/lib/elm_flipselector.c b/src/lib/elm_flipselector.c index cd09946..9c5cd5d 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 e4d22a5..f06e4f2 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 2219554..8a2bc09 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"