From 08d6dff3a402eab2ea17b917c446eae29e84fdf6 Mon Sep 17 00:00:00 2001 From: Rajeev Ranjan Date: Thu, 2 Dec 2010 12:00:55 +0530 Subject: [PATCH] [src/lib/elm_button.c, src/lib/elm_imageslider.c] Fixed Compilation Warnings. --- src/lib/elm_button.c | 3 +-- src/lib/elm_imageslider.c | 7 ++++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/elm_button.c b/src/lib/elm_button.c index ce5f5e4..98a56e8 100644 --- a/src/lib/elm_button.c +++ b/src/lib/elm_button.c @@ -153,7 +153,7 @@ static void _sizing_eval(Evas_Object *obj) { Widget_Data *wd = elm_widget_data_get(obj); - Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1; + Evas_Coord minw = -1, minh = -1; Evas_Coord w, h; if (!wd) return; @@ -166,7 +166,6 @@ _sizing_eval(Evas_Object *obj) if (h > minh) minh = h; evas_object_size_hint_min_set(obj, minw, minh); - //evas_object_size_hint_max_set(obj, maxw, maxh); } static void diff --git a/src/lib/elm_imageslider.c b/src/lib/elm_imageslider.c index d73e03b..1da6a85 100644 --- a/src/lib/elm_imageslider.c +++ b/src/lib/elm_imageslider.c @@ -109,7 +109,7 @@ static int _check_drag(int state, void *data); static void _check_zoom(void *data); static void _anim(Widget_Data *wd); static Eina_Bool _timer_cb(void *data); -static void _signal_clicked(void *data, Evas_Object *obj, const char *emission, const char *source); +//static void _signal_clicked(void *data, Evas_Object *obj, const char *emission, const char *source); static void ev_imageslider_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info); static void ev_imageslider_up_cb(void *data, Evas *e, Evas_Object *obj, void *event_info); static void ev_imageslider_move_cb(void *data, Evas *e, Evas_Object *obj, void *event_info); @@ -534,6 +534,7 @@ static void ev_imageslider_move_cb(void * data, Evas * e, Evas_Object * obj, voi } +#if 0 // Whenever CLICK event occurs, Call this API // But, DONOT emit CLICK event. // DO NOT use this callback function. Remove later. @@ -542,7 +543,7 @@ _signal_clicked(void *data, Evas_Object *obj, const char *emission, const char * { fprintf(stderr, "[[[ DEBUG ]]]: Call the callback function about Click event!, But DONOT emit CLICK event in the callback function!\n"); } - +#endif static inline double time_get(Evas_Coord x, Evas_Coord w) { @@ -790,7 +791,7 @@ elm_imageslider_add(Evas_Object * parent) elm_widget_data_set(obj, wd); //wd->parent = parent; elm_widget_del_hook_set(obj, _del_hook); - //elm_widget_theme_hook_set(obj, _theme_hook); + elm_widget_theme_hook_set(obj, _theme_hook); wd->clip = evas_object_rectangle_add(e); -- 2.7.4