FlipSelector: fix callback type.
authorDaniel Zaoui <daniel.zaoui@samsung.com>
Thu, 24 Apr 2014 08:04:35 +0000 (11:04 +0300)
committerDaniel Zaoui <daniel.zaoui@samsung.com>
Thu, 24 Apr 2014 08:04:35 +0000 (11:04 +0300)
Evas_Smart_Cb was used in legacy while flipselector_func_type was used
in Eo. That made the compilation failing in E.

src/lib/elm_flipselector.c
src/lib/elm_flipselector.eo
src/lib/elm_flipselector_eo.h

index cd09946..9c5cd5d 100644 (file)
@@ -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;
 
index e4d22a5..f06e4f2 100644 (file)
@@ -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 */
          }
index 2219554..8a2bc09 100644 (file)
@@ -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"