use typedef function arg
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 7 Mar 2012 00:12:36 +0000 (00:12 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 7 Mar 2012 00:12:36 +0000 (00:12 +0000)
SVN revision: 68860

src/lib/elm_box.c
src/lib/elm_box.h

index 8b668a2..2c9ba3d 100644 (file)
@@ -526,7 +526,7 @@ elm_box_unpack_all(Evas_Object *obj)
 }
 
 EAPI void
-elm_box_layout_set(Evas_Object *obj, Evas_Object_Box_Layout cb, const void *data, void (*free_data)(void *data))
+elm_box_layout_set(Evas_Object *obj, Evas_Object_Box_Layout cb, const void *data, Ecore_Cb free_data)
 {
    ELM_CHECK_WIDTYPE(obj, widtype);
    Widget_Data *wd = elm_widget_data_get(obj);
@@ -576,8 +576,8 @@ elm_box_transition_new(const double duration,
                        Evas_Object_Box_Layout start_layout, void *start_layout_data,
                        void(*start_layout_free_data)(void *data),
                        Evas_Object_Box_Layout end_layout, void *end_layout_data,
-                       void(*end_layout_free_data)(void *data),
-                       void(*transition_end_cb)(void *data),
+                       Ecore_Cb end_layout_free_data,
+                       Ecore_Cb transition_end_cb,
                        void *transition_end_data)
 {
    Elm_Box_Transition *box_data;
index 977a02a..a896c8d 100644 (file)
@@ -368,7 +368,7 @@ EAPI void                elm_box_recalculate(Evas_Object *obj);
  *
  * @see elm_box_layout_transition()
  */
-EAPI void                elm_box_layout_set(Evas_Object *obj, Evas_Object_Box_Layout cb, const void *data, void (*free_data)(void *data));
+EAPI void                elm_box_layout_set(Evas_Object *obj, Evas_Object_Box_Layout cb, const void *data, Ecore_Cb free_data);
 
 /**
  * Special layout function that animates the transition from one layout to another
@@ -435,7 +435,7 @@ EAPI void                elm_box_layout_transition(Evas_Object *obj, Evas_Object
  * @see elm_box_transition_new
  * @see elm_box_layout_transition
  */
-EAPI Elm_Box_Transition *elm_box_transition_new(const double duration, Evas_Object_Box_Layout start_layout, void *start_layout_data, void (*start_layout_free_data)(void *data), Evas_Object_Box_Layout end_layout, void *end_layout_data, void (*end_layout_free_data)(void *data), void (*transition_end_cb)(void *data), void *transition_end_data);
+EAPI Elm_Box_Transition *elm_box_transition_new(const double duration, Evas_Object_Box_Layout start_layout, void *start_layout_data, void (*start_layout_free_data)(void *data), Evas_Object_Box_Layout end_layout, void *end_layout_data, Ecore_Cb end_layout_free_data, Ecore_Cb transition_end_cb, void *transition_end_data);
 
 /**
  * Free a Elm_Box_Transition instance created with elm_box_transition_new().