forked from enlightenment/efl
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.
This commit is contained in:
parent
40a65560f6
commit
67d8bd6e34
|
@ -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;
|
||||
|
||||
|
|
|
@ -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 */
|
||||
}
|
||||
|
|
|
@ -1,3 +1 @@
|
|||
typedef void (*flipselector_func_type)(void *, Evas_Object *, void *);
|
||||
|
||||
#include "elm_flipselector.eo.h"
|
Loading…
Reference in New Issue