From faa430109c2806eaa42c6b353134c4849ce977f1 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Fri, 1 Oct 2010 20:05:31 +0900 Subject: [PATCH] remove some warnings --- src/lib/elm_actionslider.c | 4 ++-- src/lib/elm_animator.c | 4 ++-- src/lib/elm_colorpicker.c | 8 ++++---- src/lib/elm_diskcontroller.c | 4 ++-- src/lib/elm_picker.c | 4 ++-- src/lib/elm_popup.c | 4 ++-- src/lib/elm_slider.c | 4 ++-- src/lib/elm_tab.c | 4 ++-- 8 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/lib/elm_actionslider.c b/src/lib/elm_actionslider.c index 5f1270f..249bfcd 100644 --- a/src/lib/elm_actionslider.c +++ b/src/lib/elm_actionslider.c @@ -65,7 +65,7 @@ static void _icon_up_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) /* * internal functions */ -static int _icon_animation(void *data); +static Eina_Bool _icon_animation(void *data); static void _del_hook(Evas_Object *obj) @@ -248,7 +248,7 @@ _icon_up_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) } } -static int +static Eina_Bool _icon_animation(void *data) { Widget_Data *wd = (Widget_Data *)data; diff --git a/src/lib/elm_animator.c b/src/lib/elm_animator.c index 3fc8909..1e37200 100644 --- a/src/lib/elm_animator.c +++ b/src/lib/elm_animator.c @@ -34,7 +34,7 @@ static double _animator_curve_in(double frame); static double _animator_curve_out(double frame); static unsigned int _animator_compute_reverse_repeat_count(unsigned int cnt); static unsigned int _animator_compute_no_reverse_repeat_count(unsigned int cnt); -static int _animator_animate_cb(void *data); +static Eina_Bool _animator_animate_cb(void *data); static void _delete_animator(Elm_Animator *animator); static void _animator_parent_del(void *data, Evas *evas __UNUSED__, Evas_Object *obj __UNUSED__, void *event __UNUSED__); @@ -87,7 +87,7 @@ _delete_animator(Elm_Animator *animator) } } -static int +static Eina_Bool _animator_animate_cb(void *data) { Elm_Animator *animator = (Elm_Animator *) data; diff --git a/src/lib/elm_colorpicker.c b/src/lib/elm_colorpicker.c index a9913b7..027ad90 100644 --- a/src/lib/elm_colorpicker.c +++ b/src/lib/elm_colorpicker.c @@ -84,8 +84,8 @@ static void _colorbar_cb(void *data, Evas * e, Evas_Object * obj, void *event_info); static void _arrow_resize_cb(void *data, Evas * e, Evas_Object * obj, void *event_info); -static int _mv_timer(void *data); -static int _long_press_timer(void *data); +static Eina_Bool _mv_timer(void *data); +static Eina_Bool _long_press_timer(void *data); static void _left_button_down_cb(void *data, Evas * e, Evas_Object * obj, void *event_info); static void _right_button_down_cb(void *data, Evas * e, Evas_Object * obj, @@ -595,7 +595,7 @@ _arrow_resize_cb(void *data, Evas * e, Evas_Object * obj, void *event_info) evas_object_size_hint_max_set(cp->arrow, arrow_w, arrow_h); } -static int +static Eina_Bool _mv_timer(void *data) { Colorpicker_Data *cp = (Colorpicker_Data *) data; @@ -637,7 +637,7 @@ _mv_timer(void *data) } } -static int +static Eina_Bool _long_press_timer(void *data) { Colorpicker_Data *cp = (Colorpicker_Data *) data; diff --git a/src/lib/elm_diskcontroller.c b/src/lib/elm_diskcontroller.c index a39bb12..b2ff7e0 100644 --- a/src/lib/elm_diskcontroller.c +++ b/src/lib/elm_diskcontroller.c @@ -227,7 +227,7 @@ static int check_letter(const char *str, int length) return length-1; } -static int check_string(void *data) +static Eina_Bool check_string(void *data) { Eina_List *l; Elm_Diskcontroller_Item *it; @@ -325,7 +325,7 @@ static void scroller_stop_cb(void *data, Evas_Object *obj, void *event_info) wd->stop = 1; } -static int move_scroller(void *data) +static Eina_Bool move_scroller(void *data) { Widget_Data *wd = (Widget_Data *)data; Eina_List *l; diff --git a/src/lib/elm_picker.c b/src/lib/elm_picker.c index d2559bd..eec4aa2 100644 --- a/src/lib/elm_picker.c +++ b/src/lib/elm_picker.c @@ -39,7 +39,7 @@ static void _down_pressed(void *data, Evas_Object *obj, const char *emission, co static void _item_up(void *data, Evas_Object *obj, const char *emission, const char *source); static void _item_down(void *data, Evas_Object *obj, const char *emission, const char *source); static void _changed(void *data); -static int _animator(void *data); +static Eina_Bool _animator(void *data); static void _flick(Evas_Object *obj, float speed); static void _flick_init(Evas_Object *obj); static void _mouse_up(void *data, Evas *e, Evas_Object *obj, void *event_info); @@ -197,7 +197,7 @@ _changed(void *data) } } -static int +static Eina_Bool _animator(void *data) { Evas_Object *obj = data; diff --git a/src/lib/elm_popup.c b/src/lib/elm_popup.c index 90e7708..6673ede 100644 --- a/src/lib/elm_popup.c +++ b/src/lib/elm_popup.c @@ -169,7 +169,7 @@ _block_clicked_cb( void *data, Evas_Object *obj, void *event_info ) static Ecore_Event_Handler* _elm_wnd_map_handler = NULL; -static int +static Eina_Bool _wnd_map_notify(void *data, int type, void *event) { Evas* e = NULL; @@ -298,7 +298,7 @@ _elm_popup_timeout( void *data, Evas_Object *obj, void *event_info ) evas_object_smart_callback_call((Evas_Object *)data, "response", (void *)ELM_POPUP_RESPONSE_TIMEOUT); } -static int +static Eina_Bool _elm_signal_exit(void *data __UNUSED__, int ev_type __UNUSED__, void *ev __UNUSED__) { int res_id = ELM_POPUP_RESPONSE_NONE; diff --git a/src/lib/elm_slider.c b/src/lib/elm_slider.c index 337cf17..2d62fbb 100644 --- a/src/lib/elm_slider.c +++ b/src/lib/elm_slider.c @@ -80,7 +80,7 @@ static void _indicator_set(Evas_Object *obj); static void _spacer_cb(void *data, Evas * e, Evas_Object * obj, void *event_info); -static int _mv_timer_cb(void *data); +static Eina_Bool _mv_timer_cb(void *data); static const char SIG_CHANGED[] = "changed"; static const char SIG_DELAY_CHANGED[] = "delay,changed"; @@ -970,7 +970,7 @@ elm_slider_indicator_show_set(Evas_Object *obj, Eina_Bool show) edje_object_signal_emit(wd->slider, "elm,state,val,hide", "elm"); } -static int _mv_timer_cb(void *data) +static Eina_Bool _mv_timer_cb(void *data) { Evas_Object* obj = (Evas_Object*)data; Widget_Data *wd = elm_widget_data_get(obj); diff --git a/src/lib/elm_tab.c b/src/lib/elm_tab.c index 8442a99..472befe 100644 --- a/src/lib/elm_tab.c +++ b/src/lib/elm_tab.c @@ -1005,7 +1005,7 @@ static void edit_up_cb(void *data, Evas *evas, Evas_Object *obj, void *event_inf evas_object_hide(wd->ebx); } -static int item_move_cb(void *data, int type, void *event_info) +static Eina_Bool item_move_cb(void *data, int type, void *event_info) { Evas_Object *obj; Ecore_Event_Mouse_Move *ev = event_info; @@ -1041,7 +1041,7 @@ static int sort_cb(const void *d1, const void *d2) return item1->slot > item2->slot ? 1 : -1; } -static int item_up_cb(void *data, int type, void *event_info) +static Eina_Bool item_up_cb(void *data, int type, void *event_info) { Evas_Object *obj; Ecore_Event_Mouse_Button *ev = event_info; -- 2.7.4