sd->minw = minw;
sd->minh = minh;
- evas_object_smart_callback_call(sd->pan_obj, "changed", NULL);
+ eo_do(sd->pan_obj, eo_event_callback_call(ELM_PAN_EVENT_CHANGED, NULL));
_sizing_eval(obj);
}
sd->calc_job = NULL;
edje_object_signal_emit
(wd->resize_obj,
"elm,state,busy,start", "elm");
- evas_object_smart_callback_call
- (obj, SIG_LOAD_DETAIL, NULL);
+ eo_do(obj, eo_event_callback_call
+ (ELM_PHOTOCAM_EVENT_LOAD_DETAIL, NULL));
}
}
else if ((g->grid[tn].want) && (!visible))
edje_object_signal_emit
(wd->resize_obj,
"elm,state,busy,stop", "elm");
- evas_object_smart_callback_call
- (obj, SIG_LOADED_DETAIL, NULL);
+ eo_do(obj, eo_event_callback_call
+ (ELM_PHOTOCAM_EVENT_LOADED_DETAIL, NULL));
}
g->grid[tn].want = 0;
evas_object_hide(g->grid[tn].img);
edje_object_signal_emit
(wd->resize_obj,
"elm,state,busy,stop", "elm");
- evas_object_smart_callback_call
- (obj, SIG_LOAD_DETAIL, NULL);
+ eo_do(obj, eo_event_callback_call
+ (ELM_PHOTOCAM_EVENT_LOAD_DETAIL, NULL));
}
}
}
edje_object_signal_emit
(wd->resize_obj, "elm,state,busy,stop",
"elm");
- evas_object_smart_callback_call
- (wd->obj, SIG_LOADED_DETAIL, NULL);
+ eo_do(wd->obj, eo_event_callback_call
+ (ELM_PHOTOCAM_EVENT_LOADED_DETAIL, NULL));
}
}
}
}
ecore_job_del(sd->calc_job);
sd->calc_job = ecore_job_add(_calc_job_cb, data);
- evas_object_smart_callback_call(data, SIG_LOADED, NULL);
+ eo_do(data, eo_event_callback_call(ELM_PHOTOCAM_EVENT_LOADED, NULL));
sd->preload_num--;
if (!sd->preload_num)
{
edje_object_signal_emit
(wd->resize_obj, "elm,state,busy,stop", "elm");
- evas_object_smart_callback_call(obj, SIG_LOADED_DETAIL, NULL);
+ eo_do(obj, eo_event_callback_call
+ (ELM_PHOTOCAM_EVENT_LOADED_DETAIL, NULL));
}
}
sd->no_smooth--;
if (!sd->no_smooth) _smooth_update(data);
sd->zoom_animator = NULL;
- evas_object_smart_callback_call(obj, SIG_ZOOM_STOP, NULL);
+ eo_do(obj, eo_event_callback_call(EVAS_ZOOMABLE_INTERFACE_EVENT_ZOOM_STOP, NULL));
}
return go;
sd->long_timer = NULL;
sd->longpressed = EINA_TRUE;
- evas_object_smart_callback_call(data, SIG_LONGPRESSED, NULL);
+ eo_do(data, eo_event_callback_call
+ (EVAS_CLICKABLE_INTERFACE_EVENT_LONGPRESSED, NULL));
return ECORE_CALLBACK_CANCEL;
}
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) sd->on_hold = EINA_TRUE;
else sd->on_hold = EINA_FALSE;
if (ev->flags & EVAS_BUTTON_DOUBLE_CLICK)
- evas_object_smart_callback_call(data, SIG_CLICKED_DOUBLE, NULL);
+ eo_do(data, eo_event_callback_call
+ (EVAS_CLICKABLE_INTERFACE_EVENT_CLICKED_DOUBLE, NULL));
else
- evas_object_smart_callback_call(data, SIG_PRESS, NULL);
+ eo_do(data, eo_event_callback_call(ELM_PHOTOCAM_EVENT_PRESS, NULL));
sd->longpressed = EINA_FALSE;
ecore_timer_del(sd->long_timer);
sd->long_timer = ecore_timer_add
else sd->on_hold = EINA_FALSE;
ELM_SAFE_FREE(sd->long_timer, ecore_timer_del);
if (!sd->on_hold)
- evas_object_smart_callback_call(data, SIG_CLICKED, NULL);
+ eo_do(data, eo_event_callback_call
+ (EVAS_CLICKABLE_INTERFACE_EVENT_CLICKED, NULL));
sd->on_hold = EINA_FALSE;
}
_scroll_animate_start_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- evas_object_smart_callback_call(obj, SIG_SCROLL_ANIM_START, NULL);
+ eo_do(obj, eo_event_callback_call
+ (EVAS_SCROLLABLE_INTERFACE_EVENT_SCROLL_ANIM_START, NULL));
}
static void
_scroll_animate_stop_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- evas_object_smart_callback_call(obj, SIG_SCROLL_ANIM_STOP, NULL);
+ eo_do(obj, eo_event_callback_call
+ (EVAS_SCROLLABLE_INTERFACE_EVENT_SCROLL_ANIM_STOP, NULL));
}
static void
_scroll_drag_start_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- evas_object_smart_callback_call(obj, SIG_SCROLL_DRAG_START, NULL);
+ eo_do(obj, eo_event_callback_call
+ (EVAS_SCROLLABLE_INTERFACE_EVENT_SCROLL_DRAG_START, NULL));
}
static void
_scroll_drag_stop_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- evas_object_smart_callback_call(obj, SIG_SCROLL_DRAG_STOP, NULL);
+ eo_do(obj, eo_event_callback_call
+ (EVAS_SCROLLABLE_INTERFACE_EVENT_SCROLL_DRAG_STOP, NULL));
}
static void
ecore_timer_del(sd->scr_timer);
sd->scr_timer = ecore_timer_add(0.5, _scroll_timeout_cb, obj);
- evas_object_smart_callback_call(obj, SIG_SCROLL, NULL);
+ eo_do(obj, eo_event_callback_call
+ (EVAS_SCROLLABLE_INTERFACE_EVENT_SCROLL, NULL));
}
static Eina_Bool
sd->main_load_pending = EINA_TRUE;
sd->calc_job = ecore_job_add(_calc_job_cb, obj);
- evas_object_smart_callback_call(obj, SIG_LOAD, NULL);
+ eo_do(obj, eo_event_callback_call(ELM_PHOTOCAM_EVENT_LOAD, NULL));
sd->preload_num++;
if (sd->preload_num == 1)
{
edje_object_signal_emit
(wd->resize_obj, "elm,state,busy,start", "elm");
- evas_object_smart_callback_call(obj, SIG_LOAD_DETAIL, NULL);
+ eo_do(obj, eo_event_callback_call(ELM_PHOTOCAM_EVENT_LOAD_DETAIL, NULL));
}
tz = sd->zoom;
free(sd->remote_data);
sd->remote_data = NULL;
- evas_object_smart_callback_call(obj, SIG_DOWNLOAD_ERROR, &err);
+ eo_do(obj, eo_event_callback_call
+ (ELM_PHOTOCAM_EVENT_DOWNLOAD_ERROR, &err));
}
else
{
- evas_object_smart_callback_call(obj, SIG_DOWNLOAD_DONE, NULL);
+ eo_do(obj, eo_event_callback_call
+ (ELM_PHOTOCAM_EVENT_DOWNLOAD_DONE, NULL));
}
sd->remote = NULL;
Elm_Photocam_Data *sd = eo_data_scope_get(obj, MY_CLASS);
Elm_Photocam_Error err = { error, EINA_FALSE };
- evas_object_smart_callback_call(obj, SIG_DOWNLOAD_ERROR, &err);
+ eo_do(obj, eo_event_callback_call(ELM_PHOTOCAM_EVENT_DOWNLOAD_ERROR, &err));
sd->remote = NULL;
}
progress.now = now;
progress.total = total;
- evas_object_smart_callback_call(obj, SIG_DOWNLOAD_PROGRESS, &progress);
+ eo_do(obj, eo_event_callback_call
+ (ELM_PHOTOCAM_EVENT_DOWNLOAD_PROGRESS, &progress));
}
static const char *remote_uri[] = {
obj);
if (sd->remote)
{
- evas_object_smart_callback_call(obj, SIG_DOWNLOAD_START, NULL);
+ eo_do(obj, eo_event_callback_call
+ (ELM_PHOTOCAM_EVENT_DOWNLOAD_START, NULL));
return ret;
}
break;
if (!sd->paused)
{
if (started)
- evas_object_smart_callback_call(obj, SIG_ZOOM_START, NULL);
+ eo_do(obj, eo_event_callback_call(EVAS_ZOOMABLE_INTERFACE_EVENT_ZOOM_START, NULL));
if (!an)
- evas_object_smart_callback_call(obj, SIG_ZOOM_STOP, NULL);
+ eo_do(obj, eo_event_callback_call(EVAS_ZOOMABLE_INTERFACE_EVENT_ZOOM_STOP, NULL));
}
if (zoom_changed)
- evas_object_smart_callback_call(obj, SIG_ZOOM_CHANGE, NULL);
+ eo_do(obj, eo_event_callback_call(EVAS_ZOOMABLE_INTERFACE_EVENT_ZOOM_CHANGE, NULL));
}
EOLIAN static double
ecore_animator_del(sd->zoom_animator);
sd->zoom_animator = NULL;
_zoom_do(obj, 1.0);
- evas_object_smart_callback_call(obj, SIG_ZOOM_STOP, NULL);
+ eo_do(obj, eo_event_callback_call(EVAS_ZOOMABLE_INTERFACE_EVENT_ZOOM_STOP, NULL));
}
eo_do(obj, elm_interface_scrollable_content_region_show(rx, ry, rw, rh));
}
ecore_animator_del(sd->zoom_animator);
sd->zoom_animator = NULL;
_zoom_do(obj, 1.0);
- evas_object_smart_callback_call(obj, SIG_ZOOM_STOP, NULL);
+ eo_do(obj, eo_event_callback_call(EVAS_ZOOMABLE_INTERFACE_EVENT_ZOOM_STOP, NULL));
}
eo_do_super(obj, MY_CLASS, elm_interface_scrollable_region_bring_in(rx, ry, rw, rh));
}
ecore_animator_del(sd->zoom_animator);
sd->zoom_animator = NULL;
_zoom_do(obj, 1.0);
- evas_object_smart_callback_call(obj, SIG_ZOOM_STOP, NULL);
+ eo_do(obj, eo_event_callback_call(EVAS_ZOOMABLE_INTERFACE_EVENT_ZOOM_STOP, NULL));
}
}