EAPI void elm_object_signal_emit(Evas_Object *obj, const char *emission, const char *source);
EAPI void elm_object_signal_callback_add(Evas_Object *obj, const char *emission, const char *source, void (*func) (void *data, Evas_Object *o, const char *emission, const char *source), void *data);
- EAPI void *elm_object_signal_callback_del(Evas_Object *obj, const char *emission, const char *source, void (*func) (void *data, Evas_Object *o, const char *emission, const char *source));
+ EAPI void *elm_object_signal_callback_del(Evas_Object *obj, const char *emission, const char *source, void (*func) (void *data, Evas_Object *o, const char *emission, const char *source));
EAPI void elm_coords_finger_size_adjust(int times_w, Evas_Coord *w, int times_h, Evas_Coord *h);
EAPI Evas_Object *elm_bubble_content_unset(Evas_Object *obj);
EAPI void elm_bubble_icon_set(Evas_Object *obj, Evas_Object *icon);
EAPI Evas_Object *elm_bubble_icon_get(const Evas_Object *obj);
- EAPI void elm_bubble_sweep_layout_set(Evas_Object *obj, Evas_Object *sweep);
+ EAPI void elm_bubble_sweep_layout_set(Evas_Object *obj, Evas_Object *sweep);
EAPI Evas_Object *elm_bubble_sweep_layout_unset(Evas_Object *obj);
EAPI void elm_bubble_corner_set(Evas_Object *obj, const char *corner);
/* smart callbacks called:
typedef enum
{
ELM_CALENDAR_UNIQUE,
- ELM_CALENDAR_DAILY,
+ ELM_CALENDAR_DAILY,
ELM_CALENDAR_WEEKLY,
ELM_CALENDAR_MONTHLY,
ELM_CALENDAR_ANNUALLY
EAPI void elm_discpicker_item_data_set(Elm_Discpicker_Item *item, void *data);
EAPI Eina_Bool elm_discpicker_item_disabled_get(Elm_Discpicker_Item *item);
EAPI void elm_discpicker_item_disabled_set(Elm_Discpicker_Item *item, Eina_Bool disabled);
- /* smart callback called:
+ /* smart callbacks called:
* "selected" - when discpicker selected item is changed
* "overflowed" - when discpicker item is changed to first item from last item
* "underflowed" - when discpicker item is changed to last item from first item.
_hsl_to_rgb(void *data)
{
Widget_Data *wd = (Widget_Data *) data;
- double r = 0.0, g = 0.0, b = 0.0;
+ double r = 0, g = 0, b = 0;
double _h, _s, _l;
- int i;
+ int i = 0;
double sv, vsf, f, p, q, t, v;
_h = wd->h;
_l = wd->l;
if (_s == 0.0)
- {
- r = g = b = _l;
- }
+ r = g = b = _l;
else
{
ecore_timer_del(wd->mv_timer);
wd->mv_timer = NULL;
}
- return 0;
+ return EINA_FALSE;
}
}
wd->mv_timer = ecore_timer_add(0.01, _mv_timer, cp);
- return 0;
+ return EINA_FALSE;
}
static void
-_left_button_down_cb(void *data, Evas * e, Evas_Object * obj, void *event_info)
+_left_button_down_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Colorpicker_Data *cp = (Colorpicker_Data *) data;
Widget_Data *wd = elm_widget_data_get(cp->parent);
}
static void
-_right_button_up_cb(void *data, Evas * e, Evas_Object * obj, void *event_info)
+_right_button_up_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Colorpicker_Data *cp = (Colorpicker_Data *) data;
Widget_Data *wd = elm_widget_data_get(cp->parent);
static void
_add_colorbar(Evas_Object * obj)
{
- int i;
+ char colorbar_name[128];
Widget_Data *wd;
Evas *e;
- char colorbar_name[128];
+ int i = 0;
+
wd = elm_widget_data_get(obj);
if (!wd)
* @ingroup Colorpicker
*/
EAPI Evas_Object *
-elm_colorpicker_add(Evas_Object * parent)
+elm_colorpicker_add(Evas_Object *parent)
{
Evas_Object *obj = NULL;
Widget_Data *wd = NULL;
evas_object_smart_member_add(gi->img, wd->pan_smart);
elm_widget_sub_object_add(obj, gi->img);
- evas_object_pass_events_set(gi->img, 1);
+ evas_object_pass_events_set(gi->img, EINA_TRUE);
evas_object_stack_below(gi->img, wd->sep_maps_markers);
/*gi->txt = evas_object_text_add(evas_object_evas_get(obj));
evas_object_smart_member_add(gi->txt,
wd->pan_smart);
elm_widget_sub_object_add(obj, gi->txt);
- evas_object_pass_events_set(gi->txt, 1);
+ evas_object_pass_events_set(gi->txt, EINA_TRUE);
*/
eina_matrixsparse_data_idx_set(g->grid, y, x, gi);
}
elm_widget_sub_object_add(group->wd->obj, group->sc);
group->bx = elm_box_add(group->bubble);
- evas_object_size_hint_align_set(group->bx, -1, -1);
+ evas_object_size_hint_align_set(group->bx, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(group->bx, 0.5, 0.5);
elm_box_horizontal_set(group->bx, EINA_TRUE);
evas_object_show(group->bx);
evas_object_smart_callback_add(wd->scr, "drag,stop", _scr_drag_stop, obj);
evas_object_smart_callback_add(wd->scr, "scroll", _scr_scroll, obj);
- elm_smart_scroller_bounce_allow_set(wd->scr, 1, 1);
+ elm_smart_scroller_bounce_allow_set(wd->scr, EINA_TRUE, EINA_TRUE);
wd->obj = obj;