for (j = 0 ; j < (int) (distribution[i] * request) ; j++)
{
/* Miss finding the callbacks on purpose, so we measure worst case scenario. */
- efl_event_callback_call(obj[i], SIMPLE_BAR, NULL);
+ efl_event_callback_legacy_call(obj[i], SIMPLE_BAR, NULL);
}
}
efl_input_pointer_position_set(td->evdown, x, y);
efl_input_pointer_position_set(td->evup, x, y);
- efl_event_callback_call(td->win, EFL_EVENT_POINTER_MOVE, td->evmove);
- efl_event_callback_call(td->win, EFL_EVENT_POINTER_DOWN, td->evdown);
- efl_event_callback_call(td->win, EFL_EVENT_POINTER_UP, td->evup);
+ efl_event_callback_legacy_call(td->win, EFL_EVENT_POINTER_MOVE, td->evmove);
+ efl_event_callback_legacy_call(td->win, EFL_EVENT_POINTER_DOWN, td->evdown);
+ efl_event_callback_legacy_call(td->win, EFL_EVENT_POINTER_UP, td->evup);
}
else
{
- efl_event_callback_call(td->win, EFL_EVENT_KEY_DOWN, td->evkeydown);
- efl_event_callback_call(td->win, EFL_EVENT_KEY_UP, td->evkeyup);
+ efl_event_callback_legacy_call(td->win, EFL_EVENT_KEY_DOWN, td->evkeydown);
+ efl_event_callback_legacy_call(td->win, EFL_EVENT_KEY_UP, td->evkeyup);
efl_del(td->evkeydown);
efl_del(td->evkeyup);
td->evkeydown = NULL;
ecore_event_add(event_type, e,
_ecore_exe_event_exe_data_free,
NULL);
- efl_event_callback_call(obj, eo_event, e);
+ efl_event_callback_legacy_call(obj, eo_event, e);
}
}
}
ecore_event_add(ECORE_EXE_EVENT_DATA, event_data,
_ecore_exe_event_exe_data_free,
NULL);
- efl_event_callback_call(obj, ECORE_EXE_EVENT_DATA_GET, event_data);
+ efl_event_callback_legacy_call(obj, ECORE_EXE_EVENT_DATA_GET, event_data);
}
current_buf = NULL;
ecore_event_add(ECORE_EXE_EVENT_ERROR, event_data,
_ecore_exe_event_exe_data_free,
NULL);
- efl_event_callback_call(obj, ECORE_EXE_EVENT_DATA_ERROR, event_data);
+ efl_event_callback_legacy_call(obj, ECORE_EXE_EVENT_DATA_ERROR, event_data);
}
current_buf = NULL;
void
_ecore_idle_enterer_call(Eo *loop)
{
- efl_event_callback_call(loop, EFL_LOOP_EVENT_IDLE_ENTER, NULL);
+ efl_event_callback_legacy_call(loop, EFL_LOOP_EVENT_IDLE_ENTER, NULL);
}
void
_ecore_idle_exiter_call(Eo *loop)
{
- efl_event_callback_call(loop, EFL_LOOP_EVENT_IDLE_EXIT, NULL);
+ efl_event_callback_legacy_call(loop, EFL_LOOP_EVENT_IDLE_EXIT, NULL);
}
void
_ecore_idler_all_call(Eo *loop)
{
- efl_event_callback_call(loop, EFL_LOOP_EVENT_IDLE, NULL);
+ efl_event_callback_legacy_call(loop, EFL_LOOP_EVENT_IDLE, NULL);
}
int
arge.initialization = initialization;
initialization = EINA_FALSE;
- efl_event_callback_call(ecore_main_loop_get(), EFL_LOOP_EVENT_ARGUMENTS, &arge);
+ efl_event_callback_legacy_call(ecore_main_loop_get(), EFL_LOOP_EVENT_ARGUMENTS, &arge);
_efl_loop_arguments_cleanup(arga);
}
efl_ref(timer->object);
eina_evlog("+timer", timer, 0.0, NULL);
- efl_event_callback_call(timer->object, EFL_LOOP_TIMER_EVENT_TICK, NULL);
+ efl_event_callback_legacy_call(timer->object, EFL_LOOP_TIMER_EVENT_TICK, NULL);
eina_evlog("-timer", timer, 0.0, NULL);
/* may have changed in recursive main loops */
efl_io_closer_fd_closer_fd_set(o, -1);
if (close(fd) < 0) err = errno;
- efl_event_callback_call(o, EFL_IO_CLOSER_EVENT_CLOSED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_CLOSER_EVENT_CLOSED, NULL);
return err;
}
if (pd->destination && efl_io_writer_can_write_get(pd->destination))
_efl_io_copier_write(o, pd);
- efl_event_callback_call(o, EFL_IO_COPIER_EVENT_PROGRESS, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_COPIER_EVENT_PROGRESS, NULL);
if (!pd->source || efl_io_reader_eos_get(pd->source))
{
((!pd->destination) || (eina_binbuf_length_get(pd->buf) == 0)))
{
pd->done = EINA_TRUE;
- efl_event_callback_call(o, EFL_IO_COPIER_EVENT_DONE, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_COPIER_EVENT_DONE, NULL);
}
}
}
offset = slice_of_binbuf.bytes - tmp.bytes;
- efl_event_callback_call(o, EFL_IO_COPIER_EVENT_DATA, &slice_of_binbuf);
+ efl_event_callback_legacy_call(o, EFL_IO_COPIER_EVENT_DATA, &slice_of_binbuf);
/* user may have modified pd->buf, like calling
* efl_io_copier_buffer_limit_set()
*/
if (pd->line_delimiter.len > 0)
{
- efl_event_callback_call(o, EFL_IO_COPIER_EVENT_LINE, &slice_of_binbuf);
+ efl_event_callback_legacy_call(o, EFL_IO_COPIER_EVENT_LINE, &slice_of_binbuf);
/* user may have modified pd->buf, like calling
* efl_io_copier_buffer_limit_set()
*/
err = efl_io_reader_read(pd->source, &rw_slice);
if (err)
{
- efl_event_callback_call(o, EFL_IO_COPIER_EVENT_ERROR, &err);
+ efl_event_callback_legacy_call(o, EFL_IO_COPIER_EVENT_ERROR, &err);
return;
}
if (!eina_binbuf_append_slice(pd->buf, ro_slice))
{
err = ENOMEM;
- efl_event_callback_call(o, EFL_IO_COPIER_EVENT_ERROR, &err);
+ efl_event_callback_legacy_call(o, EFL_IO_COPIER_EVENT_ERROR, &err);
return;
}
if (err)
{
if (err != EAGAIN)
- efl_event_callback_call(o, EFL_IO_COPIER_EVENT_ERROR, &err);
+ efl_event_callback_legacy_call(o, EFL_IO_COPIER_EVENT_ERROR, &err);
return;
}
pd->progress.written += ro_slice.len;
if (!eina_binbuf_remove(pd->buf, 0, ro_slice.len))
{
err = ENOMEM;
- efl_event_callback_call(o, EFL_IO_COPIER_EVENT_ERROR, &err);
+ efl_event_callback_legacy_call(o, EFL_IO_COPIER_EVENT_ERROR, &err);
return;
}
if (pd->destination && efl_isa(pd->destination, EFL_IO_SIZER_MIXIN))
efl_io_sizer_resize(pd->destination, pd->progress.total);
- efl_event_callback_call(o, EFL_IO_COPIER_EVENT_PROGRESS, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_COPIER_EVENT_PROGRESS, NULL);
}
static void
if (!pd->done)
{
pd->done = EINA_TRUE;
- efl_event_callback_call(o, EFL_IO_COPIER_EVENT_DONE, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_COPIER_EVENT_DONE, NULL);
}
}
else
{
Eina_Error err = EBADF;
- efl_event_callback_call(o, EFL_IO_COPIER_EVENT_ERROR, &err);
+ efl_event_callback_legacy_call(o, EFL_IO_COPIER_EVENT_ERROR, &err);
}
}
}
pd->closed = EINA_TRUE;
- efl_event_callback_call(o, EFL_IO_CLOSER_EVENT_CLOSED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_CLOSER_EVENT_CLOSED, NULL);
if (pd->buf)
{
if (pd->last_position != pos)
{
pd->last_position = pos;
- efl_event_callback_call(o, EFL_IO_POSITIONER_EVENT_POSITION_CHANGED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_POSITIONER_EVENT_POSITION_CHANGED, NULL);
}
}
int fd = efl_io_positioner_fd_positioner_fd_get(o);
if (lseek(fd, (off_t)offset, _efl_io_positioner_whence_convert(whence)) < 0)
return errno;
- efl_event_callback_call(o, EFL_IO_POSITIONER_EVENT_POSITION_CHANGED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_POSITIONER_EVENT_POSITION_CHANGED, NULL);
return 0;
}
EINA_SAFETY_ON_TRUE_RETURN(efl_io_reader_fd_reader_fd_get(o) < 0);
if (pd->can_read == can_read) return;
pd->can_read = can_read;
- efl_event_callback_call(o, EFL_IO_READER_EVENT_CAN_READ_CHANGED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_READER_EVENT_CAN_READ_CHANGED, NULL);
}
EOLIAN static Eina_Bool
if (pd->eos == is_eos) return;
pd->eos = is_eos;
if (is_eos)
- efl_event_callback_call(o, EFL_IO_READER_EVENT_EOS, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_READER_EVENT_EOS, NULL);
}
#include "efl_io_reader_fd.eo.c"
{
int fd = efl_io_sizer_fd_sizer_fd_get(o);
if (ftruncate(fd, size) < 0) return errno;
- efl_event_callback_call(o, EFL_IO_SIZER_EVENT_SIZE_CHANGED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_SIZER_EVENT_SIZE_CHANGED, NULL);
return 0;
}
EINA_SAFETY_ON_TRUE_RETURN(efl_io_writer_fd_writer_fd_get(o) < 0);
if (pd->can_write == can_write) return;
pd->can_write = can_write;
- efl_event_callback_call(o, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, NULL);
}
#include "efl_io_writer_fd.eo.c"
if (ecore_main_fd_handler_active_get(fd_handler, ECORE_FD_READ))
{
- efl_event_callback_call(obj, EFL_LOOP_FD_EVENT_READ, NULL);
+ efl_event_callback_legacy_call(obj, EFL_LOOP_FD_EVENT_READ, NULL);
}
if (ecore_main_fd_handler_active_get(fd_handler, ECORE_FD_WRITE))
{
- efl_event_callback_call(obj, EFL_LOOP_FD_EVENT_WRITE, NULL);
+ efl_event_callback_legacy_call(obj, EFL_LOOP_FD_EVENT_WRITE, NULL);
}
if (ecore_main_fd_handler_active_get(fd_handler, ECORE_FD_ERROR))
{
- efl_event_callback_call(obj, EFL_LOOP_FD_EVENT_ERROR, NULL);
+ efl_event_callback_legacy_call(obj, EFL_LOOP_FD_EVENT_ERROR, NULL);
}
return ECORE_CALLBACK_RENEW;
obj->speed = speed;
- efl_event_callback_call(eo_obj, ECORE_AUDIO_IN_EVENT_IN_SAMPLERATE_CHANGED, NULL);
+ efl_event_callback_legacy_call(eo_obj, ECORE_AUDIO_IN_EVENT_IN_SAMPLERATE_CHANGED, NULL);
}
EOLIAN static double
{
obj->samplerate = samplerate;
- efl_event_callback_call(eo_obj, ECORE_AUDIO_IN_EVENT_IN_SAMPLERATE_CHANGED, NULL);
+ efl_event_callback_legacy_call(eo_obj, ECORE_AUDIO_IN_EVENT_IN_SAMPLERATE_CHANGED, NULL);
}
EOLIAN static int
len_read = ecore_audio_obj_in_read_internal(eo_obj, buf, len);
if (len_read == 0) {
if (!obj->looped || !obj->seekable) {
- efl_event_callback_call(eo_obj, ECORE_AUDIO_IN_EVENT_IN_STOPPED, NULL);
+ efl_event_callback_legacy_call(eo_obj, ECORE_AUDIO_IN_EVENT_IN_STOPPED, NULL);
} else {
ecore_audio_obj_in_seek(eo_obj, 0, SEEK_SET);
len_read = ecore_audio_obj_in_read_internal(eo_obj, buf, len);
- efl_event_callback_call(eo_obj, ECORE_AUDIO_IN_EVENT_IN_LOOPED, NULL);
+ efl_event_callback_legacy_call(eo_obj, ECORE_AUDIO_IN_EVENT_IN_LOOPED, NULL);
}
}
if (state == PA_CONTEXT_READY) {
DBG("PA context ready.");
EINA_LIST_FOREACH(class_vars.outputs, out, eo_obj) {
- efl_event_callback_call(eo_obj, ECORE_AUDIO_OUT_PULSE_EVENT_CONTEXT_READY, NULL);
+ efl_event_callback_legacy_call(eo_obj, ECORE_AUDIO_OUT_PULSE_EVENT_CONTEXT_READY, NULL);
}
} else if ((state == PA_CONTEXT_FAILED) || (state == PA_CONTEXT_TERMINATED)) {
DBG("PA context fail.");
EINA_LIST_FOREACH(class_vars.outputs, out, eo_obj) {
- efl_event_callback_call(eo_obj, ECORE_AUDIO_OUT_PULSE_EVENT_CONTEXT_FAIL, NULL);
+ efl_event_callback_legacy_call(eo_obj, ECORE_AUDIO_OUT_PULSE_EVENT_CONTEXT_FAIL, NULL);
}
} else {
DBG("Connection state %i", state);
}
// the callback here can delete things in the list..
EINA_LIST_FOREACH(class_vars.outputs, out, eo_obj) {
- efl_event_callback_call(eo_obj, ECORE_AUDIO_OUT_PULSE_EVENT_CONTEXT_FAIL, NULL);
+ efl_event_callback_legacy_call(eo_obj, ECORE_AUDIO_OUT_PULSE_EVENT_CONTEXT_FAIL, NULL);
}
// now unref everything safely
EINA_LIST_FOREACH_SAFE(class_vars.outputs, out, tmp, eo_obj) {
if (svr->upgrade) ev = ECORE_CON_EVENT_SERVER_UPGRADE;
ecore_event_add(ev, e,
_ecore_con_event_server_add_free, NULL);
- efl_event_callback_call(obj, EFL_NETWORK_EVENT_CONNECTION_UPGRADED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_NETWORK_EVENT_CONNECTION_UPGRADED, NULL);
_ecore_con_event_count++;
}
Ecore_Con_Event_Data_Received event_info = { NULL, 0 };
event_info.data = e->data;
event_info.size = e->size;
- efl_event_callback_call(obj, EFL_NETWORK_EVENT_DATA_RECEIVED, &event_info);
+ efl_event_callback_legacy_call(obj, EFL_NETWORK_EVENT_DATA_RECEIVED, &event_info);
}
_ecore_con_event_count++;
}
if (cl->upgrade) ev = ECORE_CON_EVENT_CLIENT_UPGRADE;
ecore_event_add(ev, e,
(Ecore_End_Cb)_ecore_con_event_client_add_free, cl->host_server);
- efl_event_callback_call(obj, EFL_NETWORK_EVENT_CONNECTION_UPGRADED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_NETWORK_EVENT_CONNECTION_UPGRADED, NULL);
_ecore_con_event_count++;
}
Ecore_Con_Event_Data_Received event_info = { NULL, 0 };
event_info.data = e->data;
event_info.size = e->size;
- efl_event_callback_call(obj, EFL_NETWORK_EVENT_DATA_RECEIVED, &event_info);
+ efl_event_callback_legacy_call(obj, EFL_NETWORK_EVENT_DATA_RECEIVED, &event_info);
}
_ecore_con_event_count++;
}
DBG("%s", error);
svr->event_count = eina_list_append(svr->event_count, e);
ecore_event_add(ECORE_CON_EVENT_SERVER_ERROR, e, (Ecore_End_Cb)_ecore_con_event_server_error_free, NULL);
- efl_event_callback_call(obj, EFL_NETWORK_EVENT_CONNECTION_ERROR, e->error);
+ efl_event_callback_legacy_call(obj, EFL_NETWORK_EVENT_CONNECTION_ERROR, e->error);
_ecore_con_event_count++;
}
cl->event_count = eina_list_append(cl->event_count, e);
host_server->event_count = eina_list_append(host_server->event_count, e);
ecore_event_add(ECORE_CON_EVENT_CLIENT_ERROR, e, (Ecore_End_Cb)_ecore_con_event_client_error_free, cl->host_server);
- efl_event_callback_call(obj, EFL_NETWORK_EVENT_CONNECTION_ERROR, e->error);
+ efl_event_callback_legacy_call(obj, EFL_NETWORK_EVENT_CONNECTION_ERROR, e->error);
_ecore_con_event_count++;
}
e.status = status;
e.url_con = url_obj;
url_con->event_count++;
- efl_event_callback_call(url_obj, EFL_NETWORK_URL_EVENT_COMPLETE, &e);
+ efl_event_callback_legacy_call(url_obj, EFL_NETWORK_URL_EVENT_COMPLETE, &e);
}
static void
e.size = real_size;
e.data = buffer;
url_con->event_count++;
- efl_event_callback_call(url_obj, EFL_NETWORK_URL_EVENT_DATA, &e);
+ efl_event_callback_legacy_call(url_obj, EFL_NETWORK_URL_EVENT_DATA, &e);
}
else
{
e.up.total = ultotal;
e.up.now = ulnow;
url_con->event_count++;
- efl_event_callback_call(url_obj, EFL_NETWORK_URL_EVENT_PROGRESS, &e);
+ efl_event_callback_legacy_call(url_obj, EFL_NETWORK_URL_EVENT_PROGRESS, &e);
return 0;
}
DBG("HTTP dialer=%p error: #%d '%s'",
dialer, err, eina_error_msg_get(err));
pd->error = err;
- efl_event_callback_call(dialer, EFL_NET_DIALER_EVENT_ERROR, &err);
+ efl_event_callback_legacy_call(dialer, EFL_NET_DIALER_EVENT_ERROR, &err);
}
if (msg->msg != CURLMSG_DONE) continue;
efl_net_dialer_http_response_content_type_set(o, s);
pd->pending_headers_done = EINA_FALSE;
- efl_event_callback_call(o, EFL_NET_DIALER_HTTP_EVENT_HEADERS_DONE, NULL);
+ efl_event_callback_legacy_call(o, EFL_NET_DIALER_HTTP_EVENT_HEADERS_DONE, NULL);
}
/* take data from internal buffer filled with efl_io_writer_write()
* allow_redirects will trigger more than once
*/
pd->connected = connected;
- if (connected) efl_event_callback_call(o, EFL_NET_DIALER_EVENT_CONNECTED, NULL);
+ if (connected) efl_event_callback_legacy_call(o, EFL_NET_DIALER_EVENT_CONNECTED, NULL);
}
EOLIAN static Eina_Bool
_efl_net_dialer_http_efl_net_socket_address_remote_set(Eo *o, Efl_Net_Dialer_Http_Data *pd, const char *address)
{
if (eina_stringshare_replace(&pd->address_remote, address))
- efl_event_callback_call(o, EFL_NET_DIALER_EVENT_RESOLVED, NULL);
+ efl_event_callback_legacy_call(o, EFL_NET_DIALER_EVENT_RESOLVED, NULL);
}
EOLIAN static const char *
EINA_SAFETY_ON_TRUE_RETURN(efl_io_closer_closed_get(o));
if (pd->can_read == can_read) return;
pd->can_read = can_read;
- efl_event_callback_call(o, EFL_IO_READER_EVENT_CAN_READ_CHANGED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_READER_EVENT_CAN_READ_CHANGED, NULL);
}
EOLIAN static Eina_Bool
pd->eos = is_eos;
if (is_eos) pd->connected = EINA_FALSE;
if (is_eos)
- efl_event_callback_call(o, EFL_IO_READER_EVENT_EOS, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_READER_EVENT_EOS, NULL);
}
EOLIAN static Eina_Error
EINA_SAFETY_ON_TRUE_RETURN(efl_io_closer_closed_get(o));
if (pd->can_write == can_write) return;
pd->can_write = can_write;
- efl_event_callback_call(o, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, NULL);
}
EOLIAN static Eina_Error
efl_io_reader_eos_set(o, EINA_FALSE);
efl_net_dialer_connected_set(o, EINA_FALSE);
pd->closed = EINA_TRUE;
- efl_event_callback_call(o, EFL_IO_CLOSER_EVENT_CLOSED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_CLOSER_EVENT_CLOSED, NULL);
return err;
}
pm = _efl_net_dialer_http_primary_mode_effective_get(pd);
if (pm == EFL_NET_DIALER_HTTP_PRIMARY_MODE_UPLOAD)
- efl_event_callback_call(o, EFL_IO_SIZER_EVENT_SIZE_CHANGED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_SIZER_EVENT_SIZE_CHANGED, NULL);
}
EOLIAN static int64_t
pm = _efl_net_dialer_http_primary_mode_effective_get(pd);
if (pm == EFL_NET_DIALER_HTTP_PRIMARY_MODE_DOWNLOAD)
- efl_event_callback_call(o, EFL_IO_SIZER_EVENT_SIZE_CHANGED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_SIZER_EVENT_SIZE_CHANGED, NULL);
}
EOLIAN static int64_t
if (efl_net_ip_port_fmt(buf, sizeof(buf), (struct sockaddr *)&addr))
{
efl_net_socket_address_remote_set(o, buf);
- efl_event_callback_call(o, EFL_NET_DIALER_EVENT_RESOLVED, NULL);
+ efl_event_callback_legacy_call(o, EFL_NET_DIALER_EVENT_RESOLVED, NULL);
}
fd = efl_net_socket4(addr.ss_family, SOCK_STREAM, IPPROTO_TCP, efl_net_socket_fd_close_on_exec_get(o));
{
if (pd->connected == connected) return;
pd->connected = connected;
- if (connected) efl_event_callback_call(o, EFL_NET_DIALER_EVENT_CONNECTED, NULL);
+ if (connected) efl_event_callback_legacy_call(o, EFL_NET_DIALER_EVENT_CONNECTED, NULL);
}
EOLIAN static Eina_Bool
{
Eina_Error err = errno;
ERR("accept(%d): %s", fd, strerror(errno));
- efl_event_callback_call(o, EFL_NET_SERVER_EVENT_ERROR, &err);
+ efl_event_callback_legacy_call(o, EFL_NET_SERVER_EVENT_ERROR, &err);
return;
}
Eina_Error err = EBADF;
efl_net_server_serving_set(o, EINA_FALSE);
- efl_event_callback_call(o, EFL_NET_SERVER_EVENT_ERROR, &err);
+ efl_event_callback_legacy_call(o, EFL_NET_SERVER_EVENT_ERROR, &err);
}
EOLIAN static Efl_Object *
if (pd->serving == serving) return;
pd->serving = serving;
if (serving)
- efl_event_callback_call(o, EFL_NET_SERVER_EVENT_SERVING, NULL);
+ efl_event_callback_legacy_call(o, EFL_NET_SERVER_EVENT_SERVING, NULL);
}
EOLIAN static Eina_Error
error_listen:
close(fd);
error_socket:
- efl_event_callback_call(o, EFL_NET_SERVER_EVENT_ERROR, &err);
+ efl_event_callback_legacy_call(o, EFL_NET_SERVER_EVENT_ERROR, &err);
return err;
}
}
efl_net_server_clients_count_set(o, efl_net_server_clients_count_get(o) + 1);
- efl_event_callback_call(o, EFL_NET_SERVER_EVENT_CLIENT_ADD, client);
+ efl_event_callback_legacy_call(o, EFL_NET_SERVER_EVENT_CLIENT_ADD, client);
if (efl_ref_get(client) == 1) /* users must take a reference themselves */
{
efl_net_ip_port_fmt(str, sizeof(str), (struct sockaddr *)&addr);
close(client_fd);
- efl_event_callback_call(o, EFL_NET_SERVER_EVENT_CLIENT_REJECTED, str);
+ efl_event_callback_legacy_call(o, EFL_NET_SERVER_EVENT_CLIENT_REJECTED, str);
}
#include "efl_net_server_tcp.eo.c"
a.update_area = *viewport;
}
- efl_event_callback_call(ee->evas, EFL_EVENT_ANIMATOR_TICK, &a);
+ efl_event_callback_legacy_call(ee->evas, EFL_EVENT_ANIMATOR_TICK, &a);
// FIXME: We do not support partial animator in the subcanvas
EINA_LIST_FOREACH(ee->sub_ecore_evas, l, subee)
ev->pressure = info->multi.pressure;
ev->angle = info->multi.angle - ee->rotation;
- efl_event_callback_call(e, _event_description_get(ev->action), evt);
+ efl_event_callback_legacy_call(e, _event_description_get(ev->action), evt);
processed = ev->evas_done;
efl_del(evt);
ev->pressure = info->multi.pressure;
ev->angle = info->multi.angle - ee->rotation;
- efl_event_callback_call(e, _event_description_get(ev->action), evt);
+ efl_event_callback_legacy_call(e, _event_description_get(ev->action), evt);
processed = ev->evas_done;
efl_del(evt);
ev->wheel.z = info->z;
ev->wheel.dir = info->direction ? EFL_ORIENT_HORIZONTAL : EFL_ORIENT_VERTICAL;
- efl_event_callback_call(e, _event_description_get(ev->action), evt);
+ efl_event_callback_legacy_call(e, _event_description_get(ev->action), evt);
processed = ev->evas_done;
efl_del(evt);
ev->timestamp = info->timestamp;
_pointer_position_set(ev, ee, info->x, info->y, info->x, info->y);
- efl_event_callback_call(e, _event_description_get(ev->action), evt);
+ efl_event_callback_legacy_call(e, _event_description_get(ev->action), evt);
processed = ev->evas_done;
efl_del(evt);
}
_pointer_position_set(ev, ee, x, y, x, y);
- efl_event_callback_call(e, _event_description_get(ev->action), evt);
+ efl_event_callback_legacy_call(e, _event_description_get(ev->action), evt);
processed = ev->evas_done;
efl_del(evt);
ev->device = NULL; /* FIXME */
if (down)
- efl_event_callback_call(e, EFL_EVENT_KEY_DOWN, evt);
+ efl_event_callback_legacy_call(e, EFL_EVENT_KEY_DOWN, evt);
else
- efl_event_callback_call(e, EFL_EVENT_KEY_UP, evt);
+ efl_event_callback_legacy_call(e, EFL_EVENT_KEY_UP, evt);
processed = ev->evas_done;
efl_del(evt);
return;
}
- efl_event_callback_call(obj, ECTOR_BUFFER_EVENT_DETACHED, pd->pixels.u8);
+ efl_event_callback_legacy_call(obj, ECTOR_BUFFER_EVENT_DETACHED, pd->pixels.u8);
if (!pd->nofree)
{
free(pd->pixels.u8);
if (!ed->calc_only)
{
if (ed->recalc_call)
- efl_event_callback_call(ed->obj, EDJE_OBJECT_EVENT_RECALC, NULL);
+ efl_event_callback_legacy_call(ed->obj, EDJE_OBJECT_EVENT_RECALC, NULL);
}
else
evas_object_smart_need_recalculate_set(ed->obj, need_calc);
&pd->current_ctrl.x, &pd->current_ctrl.y);
end:
- efl_event_callback_call(obj, EFL_GFX_PATH_CHANGED, NULL);
- efl_event_callback_call(obj, EFL_GFX_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_GFX_PATH_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_GFX_CHANGED, NULL);
}
static void
efl_gfx_shape_stroke_dash_set(obj, dash, property_to.dash_length);
efl_gfx_shape_stroke_cap_set(obj, pos_map < 0.5 ? property_from.c : property_to.c);
efl_gfx_shape_stroke_join_set(obj, pos_map < 0.5 ? property_from.j : property_to.j);
- efl_event_callback_call(obj, EFL_GFX_PATH_CHANGED, NULL);
- efl_event_callback_call(obj, EFL_GFX_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_GFX_PATH_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_GFX_CHANGED, NULL);
return EINA_TRUE;
}
pd->current_ctrl.x = 0;
pd->current_ctrl.y = 0;
pd->convex = EINA_FALSE;
- efl_event_callback_call(obj, EFL_GFX_PATH_CHANGED, NULL);
- efl_event_callback_call(obj, EFL_GFX_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_GFX_PATH_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_GFX_CHANGED, NULL);
}
static void
pd->current.x = x;
pd->current.y = y;
- efl_event_callback_call(obj, EFL_GFX_PATH_CHANGED, NULL);
- efl_event_callback_call(obj, EFL_GFX_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_GFX_PATH_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_GFX_CHANGED, NULL);
}
static void
pd->current.x = x;
pd->current.y = y;
- efl_event_callback_call(obj, EFL_GFX_PATH_CHANGED, NULL);
- efl_event_callback_call(obj, EFL_GFX_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_GFX_PATH_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_GFX_CHANGED, NULL);
}
static void
pd->current_ctrl.x = ctrl_x1;
pd->current_ctrl.y = ctrl_y1;
- efl_event_callback_call(obj, EFL_GFX_PATH_CHANGED, NULL);
- efl_event_callback_call(obj, EFL_GFX_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_GFX_PATH_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_GFX_CHANGED, NULL);
}
static void
efl_gfx_path_grow(EFL_GFX_PATH_COMMAND_TYPE_CLOSE,
pd, &offset_point);
- efl_event_callback_call(obj, EFL_GFX_PATH_CHANGED, NULL);
- efl_event_callback_call(obj, EFL_GFX_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_GFX_PATH_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_GFX_CHANGED, NULL);
}
static void
_efl_gfx_shape_stroke_dash_set(obj, pd, from->public.stroke.dash, from->public.stroke.dash_length);
_efl_gfx_shape_path_set(obj, pd, from->commands, from->points);
- efl_event_callback_call(obj, EFL_GFX_PATH_CHANGED, NULL);
- efl_event_callback_call(obj, EFL_GFX_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_GFX_PATH_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_GFX_CHANGED, NULL);
}
#include "interfaces/efl_gfx_shape.eo.c"
/* no efl_io_sizer_size_set() since it could recurse! */
pd->used = size;
- efl_event_callback_call(o, EFL_IO_SIZER_EVENT_SIZE_CHANGED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_SIZER_EVENT_SIZE_CHANGED, NULL);
}
if (size == 0)
pd->bytes = tmp;
pd->allocated = size;
- efl_event_callback_call(o, EFL_IO_BUFFER_EVENT_REALLOCATED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_BUFFER_EVENT_REALLOCATED, NULL);
return EINA_TRUE;
}
pd->bytes = NULL;
pd->allocated = 0;
- efl_event_callback_call(o, EFL_IO_BUFFER_EVENT_REALLOCATED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_BUFFER_EVENT_REALLOCATED, NULL);
efl_io_sizer_resize(o, 0);
return ret;
EINA_SAFETY_ON_TRUE_RETURN(efl_io_closer_closed_get(o));
if (pd->can_read == can_read) return;
pd->can_read = can_read;
- efl_event_callback_call(o, EFL_IO_READER_EVENT_CAN_READ_CHANGED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_READER_EVENT_CAN_READ_CHANGED, NULL);
}
EOLIAN static Eina_Bool
{
EINA_SAFETY_ON_TRUE_RETURN(efl_io_closer_closed_get(o));
if (is_eos)
- efl_event_callback_call(o, EFL_IO_READER_EVENT_EOS, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_READER_EVENT_EOS, NULL);
}
EOLIAN static Eina_Error
if (pd->used < write_pos + todo)
{
pd->used = write_pos + todo;
- efl_event_callback_call(o, EFL_IO_SIZER_EVENT_SIZE_CHANGED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_SIZER_EVENT_SIZE_CHANGED, NULL);
efl_io_reader_can_read_set(o, pd->position_read < pd->used);
}
efl_io_buffer_position_write_set(o, write_pos + todo);
EINA_SAFETY_ON_TRUE_RETURN(efl_io_closer_closed_get(o));
if (pd->can_write == can_write) return;
pd->can_write = can_write;
- efl_event_callback_call(o, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, NULL);
}
EOLIAN static Eina_Error
EINA_SAFETY_ON_TRUE_RETURN_VAL(efl_io_closer_closed_get(o), EINVAL);
efl_io_sizer_resize(o, 0);
pd->closed = EINA_TRUE;
- efl_event_callback_call(o, EFL_IO_CLOSER_EVENT_CLOSED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_CLOSER_EVENT_CLOSED, NULL);
return 0;
}
efl_io_writer_can_write_set(o, (limit == 0) || (pos_write < limit));
}
- efl_event_callback_call(o, EFL_IO_SIZER_EVENT_SIZE_CHANGED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_SIZER_EVENT_SIZE_CHANGED, NULL);
if (reallocated)
- efl_event_callback_call(o, EFL_IO_BUFFER_EVENT_REALLOCATED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_BUFFER_EVENT_REALLOCATED, NULL);
return ret;
}
changed = efl_io_positioner_position_get(o) != position;
pd->position_read = position;
- efl_event_callback_call(o, EFL_IO_BUFFER_EVENT_POSITION_READ_CHANGED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_BUFFER_EVENT_POSITION_READ_CHANGED, NULL);
if (changed)
- efl_event_callback_call(o, EFL_IO_POSITIONER_EVENT_POSITION_CHANGED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_POSITIONER_EVENT_POSITION_CHANGED, NULL);
efl_io_reader_can_read_set(o, position < size);
efl_io_reader_eos_set(o, position >= size);
changed = efl_io_positioner_position_get(o) != position;
pd->position_write = position;
- efl_event_callback_call(o, EFL_IO_BUFFER_EVENT_POSITION_WRITE_CHANGED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_BUFFER_EVENT_POSITION_WRITE_CHANGED, NULL);
if (changed)
- efl_event_callback_call(o, EFL_IO_POSITIONER_EVENT_POSITION_CHANGED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_POSITIONER_EVENT_POSITION_CHANGED, NULL);
limit = efl_io_buffer_limit_get(o);
efl_io_writer_can_write_set(o, (limit == 0) || (position < limit));
}
_efl_io_queue_adjust_and_realloc_if_needed(o, pd);
- efl_event_callback_call(o, EFL_IO_QUEUE_EVENT_SLICE_CHANGED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_QUEUE_EVENT_SLICE_CHANGED, NULL);
end:
_efl_io_queue_update_cans(o, pd);
pd->position_read = 0;
pd->position_write = 0;
efl_io_reader_can_read_set(o, EINA_FALSE);
- efl_event_callback_call(o, EFL_IO_QUEUE_EVENT_SLICE_CHANGED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_QUEUE_EVENT_SLICE_CHANGED, NULL);
if (pd->pending_eos)
efl_io_reader_eos_set(o, EINA_TRUE);
}
pd->position_read += ro_slice.len;
efl_io_reader_can_read_set(o, pd->position_read < pd->position_write);
- efl_event_callback_call(o, EFL_IO_QUEUE_EVENT_SLICE_CHANGED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_QUEUE_EVENT_SLICE_CHANGED, NULL);
if ((pd->pending_eos) && (efl_io_queue_usage_get(o) == 0))
efl_io_reader_eos_set(o, EINA_TRUE);
EINA_SAFETY_ON_TRUE_RETURN(efl_io_closer_closed_get(o));
if (pd->can_read == can_read) return;
pd->can_read = can_read;
- efl_event_callback_call(o, EFL_IO_READER_EVENT_CAN_READ_CHANGED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_READER_EVENT_CAN_READ_CHANGED, NULL);
}
EOLIAN static Eina_Bool
if (is_eos)
{
pd->pending_eos = EINA_FALSE;
- efl_event_callback_call(o, EFL_IO_READER_EVENT_EOS, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_READER_EVENT_EOS, NULL);
}
}
pd->position_write += todo;
_efl_io_queue_adjust_and_realloc_if_needed(o, pd);
- efl_event_callback_call(o, EFL_IO_QUEUE_EVENT_SLICE_CHANGED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_QUEUE_EVENT_SLICE_CHANGED, NULL);
_efl_io_queue_update_cans(o, pd);
return 0;
EINA_SAFETY_ON_TRUE_RETURN(efl_io_closer_closed_get(o));
if (pd->can_write == can_write) return;
pd->can_write = can_write;
- efl_event_callback_call(o, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, NULL);
}
EOLIAN static Eina_Error
efl_io_queue_eos_mark(o);
efl_io_queue_clear(o);
pd->closed = EINA_TRUE;
- efl_event_callback_call(o, EFL_IO_CLOSER_EVENT_CLOSED, NULL);
+ efl_event_callback_legacy_call(o, EFL_IO_CLOSER_EVENT_CLOSED, NULL);
return 0;
}
EINA_SAFETY_ON_FALSE_GOTO(ret, on_error);
Efl_Model_Property_Event evt = {.changed_properties = changed_properties};
- efl_event_callback_call(model, EFL_MODEL_EVENT_PROPERTIES_CHANGED, &evt);
+ efl_event_callback_legacy_call(model, EFL_MODEL_EVENT_PROPERTIES_CHANGED, &evt);
on_error:
eina_array_free(changed_properties);
EINA_SAFETY_ON_FALSE_GOTO(ret, on_error);
Efl_Model_Property_Event evt = {.invalidated_properties = invalidated_properties};
- efl_event_callback_call(model, EFL_MODEL_EVENT_PROPERTIES_CHANGED, &evt);
+ efl_event_callback_legacy_call(model, EFL_MODEL_EVENT_PROPERTIES_CHANGED, &evt);
on_error:
eina_array_free(invalidated_properties);
{
if (pd->called) return EINA_FALSE;
pd->called = EINA_TRUE;
- efl_event_callback_call(obj, EFL_VPATH_FILE_EVENT_FETCHED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_VPATH_FILE_EVENT_FETCHED, NULL);
return EINA_TRUE;
}
{
pd->called = EINA_TRUE;
if (pd->result)
- efl_event_callback_call(obj, EFL_VPATH_FILE_EVENT_FETCHED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_VPATH_FILE_EVENT_FETCHED, NULL);
else
- efl_event_callback_call(obj, EFL_VPATH_FILE_EVENT_FAILED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_VPATH_FILE_EVENT_FAILED, NULL);
}
}
event_info->file = file;
event_info->filter = EINA_FALSE;
- efl_event_callback_call(operation->pdata->object, event, event_info);
+ efl_event_callback_legacy_call(operation->pdata->object, event, event_info);
Eina_Bool filter = event_info->filter;
event_info.info = info;
event_info.filter = EINA_FALSE;
- efl_event_callback_call(operation->pdata->object, EFL_IO_MANAGER_EVENT_FILTER_DIRECT, &event_info);
+ efl_event_callback_legacy_call(operation->pdata->object, EFL_IO_MANAGER_EVENT_FILTER_DIRECT, &event_info);
Eina_Bool filter = event_info.filter;
eina_array_push(properties, _eio_model_prop_names[EIO_MODEL_PROP_FILENAME]);
evt.changed_properties = properties;
- efl_event_callback_call(priv->obj, EFL_MODEL_EVENT_PROPERTIES_CHANGED, &evt);
+ efl_event_callback_legacy_call(priv->obj, EFL_MODEL_EVENT_PROPERTIES_CHANGED, &evt);
eina_array_free(properties);
}
eio_model_children_filter_set(cevt.child, priv->filter_cb, priv->filter_userdata);
eina_value_flush(&path);
- efl_event_callback_call(priv->obj, EFL_MODEL_EVENT_CHILD_ADDED, &cevt);
+ efl_event_callback_legacy_call(priv->obj, EFL_MODEL_EVENT_CHILD_ADDED, &cevt);
return EINA_TRUE;
}
cevt.index = i;
cevt.child = cur->data;
- efl_event_callback_call(priv->obj, EFL_MODEL_EVENT_CHILD_REMOVED, &cevt);
+ efl_event_callback_legacy_call(priv->obj, EFL_MODEL_EVENT_CHILD_REMOVED, &cevt);
priv->children_list = eina_list_remove_list(priv->children_list, cur);
efl_unref(cevt.child);
event_info->source = eio_monitor_path_get(monitor_event->monitor);
event_info->trigger = monitor_event->filename;
- efl_event_callback_call(pd->object, translated_event, event_info);
+ efl_event_callback_legacy_call(pd->object, translated_event, event_info);
// If event was error, we must delete the monitor.
if (type == EIO_MONITOR_ERROR)
if (eina_array_count(changed_properties))
{
Efl_Model_Property_Event evt = {.changed_properties = changed_properties};
- efl_event_callback_call(pd->obj, EFL_MODEL_EVENT_PROPERTIES_CHANGED, &evt);
+ efl_event_callback_legacy_call(pd->obj, EFL_MODEL_EVENT_PROPERTIES_CHANGED, &evt);
}
result = EINA_TRUE;
count = eina_list_count(pd->children_list);
if (count)
- efl_event_callback_call(pd->obj, EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED, &count);
+ efl_event_callback_legacy_call(pd->obj, EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED, &count);
pd->is_listed = EINA_TRUE;
Eldbus_Model_Arguments_Data *args_data = efl_data_scope_get(pd->obj, ELDBUS_MODEL_ARGUMENTS_CLASS);
if (eldbus_model_arguments_process_arguments(args_data, msg, pending))
- efl_event_callback_call(pd->obj, ELDBUS_MODEL_METHOD_EVENT_SUCCESSFUL_CALL, NULL);
+ efl_event_callback_legacy_call(pd->obj, ELDBUS_MODEL_METHOD_EVENT_SUCCESSFUL_CALL, NULL);
}
#include "eldbus_model_method.eo.c"
.changed_properties = changed_properties
};
- efl_event_callback_call(pd->obj, EFL_MODEL_EVENT_PROPERTIES_CHANGED, &evt);
+ efl_event_callback_legacy_call(pd->obj, EFL_MODEL_EVENT_PROPERTIES_CHANGED, &evt);
}
eina_array_free(changed_properties);
.changed_properties = pd->properties_array
};
- efl_event_callback_call(pd->obj, EFL_MODEL_EVENT_PROPERTIES_CHANGED, &evt);
+ efl_event_callback_legacy_call(pd->obj, EFL_MODEL_EVENT_PROPERTIES_CHANGED, &evt);
efl_model_property_changed_notify(pd->obj, property_set_data->property);
}
Evas_Object *box = data;
Evas_Object_Box_Option *opt = event->info;
- efl_event_callback_call(box, EFL_CONTAINER_EVENT_CONTENT_ADDED, opt->obj);
+ efl_event_callback_legacy_call(box, EFL_CONTAINER_EVENT_CONTENT_ADDED, opt->obj);
}
static void
Evas_Object *box = data;
Evas_Object *child = event->info;
- efl_event_callback_call(box, EFL_CONTAINER_EVENT_CONTENT_REMOVED, child);
+ efl_event_callback_legacy_call(box, EFL_CONTAINER_EVENT_CONTENT_REMOVED, child);
}
EOLIAN static Eina_Bool
_efl_ui_box_efl_pack_layout_layout_update(Eo *obj, Efl_Ui_Box_Data *pd)
{
efl_pack_layout_do(pd->layout_engine, obj, pd->layout_data);
- efl_event_callback_call(obj, EFL_PACK_EVENT_LAYOUT_UPDATED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_PACK_EVENT_LAYOUT_UPDATED, NULL);
}
EOLIAN static void
sd->state = sd->next_state;
_configure(obj);
_flip_show_hide(obj);
- efl_event_callback_call(obj, EFL_UI_FLIP_EVENT_ANIMATE_DONE, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_FLIP_EVENT_ANIMATE_DONE, NULL);
// update the new front and back object.
_update_front_back(obj, sd);
_flip_show_hide(sd->obj);
_configure(sd->obj);
sd->animator = NULL;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, EFL_UI_FLIP_EVENT_ANIMATE_DONE, NULL);
return ECORE_CALLBACK_CANCEL;
evas_smart_objects_calculate(evas_object_evas_get(data));
_configure(fl);
// FIXME: end hack
- efl_event_callback_call(fl, EFL_UI_FLIP_EVENT_ANIMATE_BEGIN, NULL);
+ efl_event_callback_legacy_call(fl, EFL_UI_FLIP_EVENT_ANIMATE_BEGIN, NULL);
}
else return;
}
evas_smart_objects_calculate(evas_object_evas_get(obj));
_configure(obj);
// FIXME: end hack
- efl_event_callback_call(obj, EFL_UI_FLIP_EVENT_ANIMATE_BEGIN, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_FLIP_EVENT_ANIMATE_BEGIN, NULL);
// set focus to the content object when flip go to is called
if (elm_object_focus_get(obj))
sd->collapsed++;
sd->anim = EINA_TRUE;
}
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_EVENT_CLICKED, NULL);
}
if (sd->collapsed == collapse) return;
elm_layout_signal_emit(obj, "elm,action,toggle", "elm");
- efl_event_callback_call
+ efl_event_callback_legacy_call
(wd->resize_obj, EDJE_OBJECT_EVENT_RECALC, obj);
sd->collapsed = collapse;
sd->anim = EINA_TRUE;
static void
_layout_updated_emit(Efl_Ui_Grid *obj)
{
- efl_event_callback_call(obj, EFL_PACK_EVENT_LAYOUT_UPDATED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_PACK_EVENT_LAYOUT_UPDATED, NULL);
}
static void
efl_key_data_set(subobj, GRID_ITEM_KEY, gi);
elm_widget_sub_object_add(obj, subobj);
- efl_event_callback_call(obj, EFL_CONTAINER_EVENT_CONTENT_ADDED, subobj);
+ efl_event_callback_legacy_call(obj, EFL_CONTAINER_EVENT_CONTENT_ADDED, subobj);
efl_event_callback_array_add(subobj, subobj_callbacks(), obj);
}
}
end:
- efl_event_callback_call(obj, EFL_CONTAINER_EVENT_CONTENT_REMOVED, subobj);
+ efl_event_callback_legacy_call(obj, EFL_CONTAINER_EVENT_CONTENT_REMOVED, subobj);
pd->items = (Grid_Item *)
eina_inlist_remove(EINA_INLIST_GET(pd->items), EINA_INLIST_GET(gi));
pd->count--;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
if (!wd->still_in) return;
- efl_event_callback_call(data, EFL_UI_EVENT_CLICKED, NULL);
+ efl_event_callback_legacy_call(data, EFL_UI_EVENT_CLICKED, NULL);
}
static Eina_Bool
ERR("Async open failed for an unknown reason.");
sd->async_failed = EINA_TRUE;
eina_spinlock_release(&sd->async.lck);
- efl_event_callback_call(obj, EFL_FILE_EVENT_ASYNC_ERROR, NULL);
+ efl_event_callback_legacy_call(obj, EFL_FILE_EVENT_ASYNC_ERROR, NULL);
return;
}
sd->async_failed = EINA_FALSE;
ELM_SAFE_FREE(sd->async.file, eina_stringshare_del);
ELM_SAFE_FREE(sd->async.key, eina_stringshare_del);
- efl_event_callback_call(obj, EFL_FILE_EVENT_ASYNC_OPENED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_FILE_EVENT_ASYNC_OPENED, NULL);
_efl_ui_image_internal_sizing_eval(obj, sd);
}
else
// TODO: Implement Efl.File async,error event_info type
sd->async_failed = EINA_TRUE;
// keep file,key around for file_get
- efl_event_callback_call(obj, EFL_FILE_EVENT_ASYNC_ERROR, NULL);
+ efl_event_callback_legacy_call(obj, EFL_FILE_EVENT_ASYNC_ERROR, NULL);
}
// close f, map and free strings
DBG("dnd: %s, %s, %s", elm_widget_type_get(elm_obj),
SIG_DND, (char *)drop->data);
- efl_event_callback_call(elm_obj, EFL_UI_IMAGE_EVENT_DROP, drop->data);
+ efl_event_callback_legacy_call(elm_obj, EFL_UI_IMAGE_EVENT_DROP, drop->data);
return EINA_TRUE;
}
static Eina_Bool
_key_action_activate(Evas_Object *obj, const char *params EINA_UNUSED)
{
- efl_event_callback_call(obj, EFL_UI_EVENT_CLICKED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_EVENT_CLICKED, NULL);
return EINA_TRUE;
}
free(sd->remote_data);
sd->remote_data = NULL;
- efl_event_callback_call(obj, EFL_UI_IMAGE_EVENT_DOWNLOAD_ERROR, &err);
+ efl_event_callback_legacy_call(obj, EFL_UI_IMAGE_EVENT_DOWNLOAD_ERROR, &err);
}
else
{
evas_object_image_preload(sd->img, EINA_FALSE);
}
- efl_event_callback_call(obj, EFL_UI_IMAGE_EVENT_DOWNLOAD_DONE, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_IMAGE_EVENT_DOWNLOAD_DONE, NULL);
}
ELM_SAFE_FREE(sd->key, eina_stringshare_del);
Efl_Ui_Image_Data *sd = efl_data_scope_get(obj, MY_CLASS);
Efl_Ui_Image_Error err = { error, EINA_FALSE };
- efl_event_callback_call(obj, EFL_UI_IMAGE_EVENT_DOWNLOAD_ERROR, &err);
+ efl_event_callback_legacy_call(obj, EFL_UI_IMAGE_EVENT_DOWNLOAD_ERROR, &err);
sd->remote = NULL;
ELM_SAFE_FREE(sd->key, eina_stringshare_del);
progress.now = now;
progress.total = total;
- efl_event_callback_call(obj, EFL_UI_IMAGE_EVENT_DOWNLOAD_PROGRESS, &progress);
+ efl_event_callback_legacy_call(obj, EFL_UI_IMAGE_EVENT_DOWNLOAD_PROGRESS, &progress);
}
static const char *remote_uri[] = {
obj);
if (sd->remote)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_IMAGE_EVENT_DOWNLOAD_START, NULL);
eina_stringshare_replace(&sd->key, key);
return EINA_TRUE;
char *tmp = efl_canvas_text_range_text_get(obj, en->sel_start, en->sel_end);
- efl_event_callback_call(obj, EFL_UI_TEXT_INTERACTIVE_EVENT_CHANGED_USER, &info);
+ efl_event_callback_legacy_call(obj, EFL_UI_TEXT_INTERACTIVE_EVENT_CHANGED_USER, &info);
free(tmp);
{
Efl_Canvas_Text_Cursor *obj = data;
- efl_event_callback_call(obj, EFL_UI_TEXT_INTERACTIVE_EVENT_SELECTION_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_TEXT_INTERACTIVE_EVENT_SELECTION_CHANGED, NULL);
}
static void
tmp = efl_canvas_text_range_text_get(obj, cur1, cur2);
info.content = tmp;
- efl_event_callback_call(obj, EFL_UI_TEXT_INTERACTIVE_EVENT_CHANGED_USER, &info);
+ efl_event_callback_legacy_call(obj, EFL_UI_TEXT_INTERACTIVE_EVENT_CHANGED_USER, &info);
if (tmp) free(tmp);
info.length = 1;
info.content = tmp;
- efl_event_callback_call((Eo *) efl_canvas_text_cursor_text_object_get(c),
+ efl_event_callback_legacy_call((Eo *) efl_canvas_text_cursor_text_object_get(c),
EFL_UI_TEXT_INTERACTIVE_EVENT_CHANGED_USER, &info);
if (tmp) free(tmp);
info.position = efl_canvas_text_cursor_position_get(cur);
info.length = eina_unicode_utf8_get_len(string);
- efl_event_callback_call(obj,
+ efl_event_callback_legacy_call(obj,
EFL_UI_TEXT_INTERACTIVE_EVENT_CHANGED_USER, &info);
efl_canvas_text_cursor_text_insert(cur, string);
elm_layout_signal_emit(obj, buf, "elm");
edje_object_message_signal_process(elm_layout_edje_get(obj));
elm_obj_layout_sizing_eval(obj);
- efl_event_callback_call(obj, EFL_UI_NSTATE_EVENT_STATE_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_NSTATE_EVENT_STATE_CHANGED, NULL);
}
static void
if (sd->validators == 0) return;
vc.text = edje_object_part_text_get(sd->entry_edje, "elm.text");
- res = efl_event_callback_call(obj, EFL_UI_TEXT_EVENT_VALIDATE, (void *)&vc);
+ res = efl_event_callback_legacy_call(obj, EFL_UI_TEXT_EVENT_VALIDATE, (void *)&vc);
buf = eina_strbuf_new();
eina_strbuf_append_printf(buf, "validation,%s,%s", vc.signal, res == EINA_FALSE ? "fail" : "pass");
edje_object_signal_emit(sd->scr_edje, eina_strbuf_string_get(buf), "elm");
evas_event_thaw(evas_object_evas_get(obj));
evas_event_thaw_eval(evas_object_evas_get(obj));
- efl_event_callback_call(obj, ELM_LAYOUT_EVENT_THEME_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_LAYOUT_EVENT_THEME_CHANGED, NULL);
evas_object_unref(obj);
{
EFL_UI_TEXT_DATA_GET(obj, sd);
- efl_event_callback_call(obj, EFL_UI_TEXT_EVENT_CURSOR_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_TEXT_EVENT_CURSOR_CHANGED, NULL);
Evas_Coord x, y, w, h;
Evas_Coord x2, y2, w2, h2;
if (top && top_is_win && sd->input_panel_enable && !sd->input_panel_show_on_demand &&
!edje_object_part_text_imf_context_get(sd->entry_edje, "elm.text"))
elm_win_keyboard_mode_set(top, ELM_WIN_KEYBOARD_ON);
- efl_event_callback_call(obj, ELM_WIDGET_EVENT_FOCUSED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_WIDGET_EVENT_FOCUSED, NULL);
if (_elm_config->atspi_mode)
elm_interface_atspi_accessible_state_changed_signal_emit(obj, ELM_ATSPI_STATE_FOCUSED, EINA_TRUE);
_return_key_enabled_check(obj);
if (top && top_is_win && sd->input_panel_enable &&
!edje_object_part_text_imf_context_get(sd->entry_edje, "elm.text"))
elm_win_keyboard_mode_set(top, ELM_WIN_KEYBOARD_OFF);
- efl_event_callback_call(obj, ELM_WIDGET_EVENT_UNFOCUSED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_WIDGET_EVENT_UNFOCUSED, NULL);
if (_elm_config->atspi_mode)
elm_interface_atspi_accessible_state_changed_signal_emit(obj, ELM_ATSPI_STATE_FOCUSED, EINA_FALSE);
EFL_UI_TEXT_DATA_GET(obj, sd);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SELECTION_PASTE, NULL);
sd->selection_asked = EINA_TRUE;
Efl_Canvas_Text_Cursor *start, *end;
EFL_UI_TEXT_DATA_GET(obj, sd);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SELECTION_CUT, NULL);
/* Store it */
sd->sel_mode = EINA_FALSE;
{
EFL_UI_TEXT_DATA_GET(obj, sd);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SELECTION_COPY, NULL);
sd->sel_mode = EINA_FALSE;
if (!_elm_config->desktop_entry)
if (sd->anchor_hover.hover) return;
- efl_event_callback_call(obj, EFL_UI_TEXT_EVENT_CONTEXT_OPEN, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_TEXT_EVENT_CONTEXT_OPEN, NULL);
if ((sd->api) && (sd->api->obj_longpress))
{
sd->long_pressed = EINA_TRUE;
sd->longpress_timer = NULL;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_EVENT_LONGPRESSED, NULL);
return ECORE_CALLBACK_CANCEL;
/* callback - this could call callbacks that delete the
* entry... thus... any access to sd after this could be
* invalid */
- efl_event_callback_call(data, event, NULL);
+ efl_event_callback_legacy_call(data, event, NULL);
}
static void
if (edje_info)
{
memcpy(&info, edje_info, sizeof(info));
- efl_event_callback_call(data, EFL_UI_TEXT_EVENT_CHANGED_USER, &info);
+ efl_event_callback_legacy_call(data, EFL_UI_TEXT_EVENT_CHANGED_USER, &info);
}
else
{
- efl_event_callback_call(data, EFL_UI_TEXT_EVENT_CHANGED_USER, NULL);
+ efl_event_callback_legacy_call(data, EFL_UI_TEXT_EVENT_CHANGED_USER, NULL);
}
if (_elm_config->atspi_mode)
{
const char *emission EINA_UNUSED,
const char *source EINA_UNUSED)
{
- efl_event_callback_call(data, EFL_UI_TEXT_EVENT_UNDO_REQUEST, NULL);
+ efl_event_callback_legacy_call(data, EFL_UI_TEXT_EVENT_UNDO_REQUEST, NULL);
}
static void
const char *emission EINA_UNUSED,
const char *source EINA_UNUSED)
{
- efl_event_callback_call(data, EFL_UI_TEXT_EVENT_REDO_REQUEST, NULL);
+ efl_event_callback_legacy_call(data, EFL_UI_TEXT_EVENT_REDO_REQUEST, NULL);
}
static void
const char *emission EINA_UNUSED,
const char *source EINA_UNUSED)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_TEXT_EVENT_CURSOR_CHANGED_MANUAL, NULL);
if (_elm_config->atspi_mode)
elm_interface_atspi_accessible_event_emit(ELM_INTERFACE_ATSPI_ACCESSIBLE_MIXIN, data, ELM_INTERFACE_ATSPI_TEXT_EVENT_ACCESS_TEXT_CARET_MOVED, NULL);
_signal_anchor_geoms_do_things_with_lol(sd, &ei);
if (!sd->disabled)
- efl_event_callback_call(data, EFL_UI_TEXT_EVENT_ANCHOR_DOWN, &ei);
+ efl_event_callback_legacy_call(data, EFL_UI_TEXT_EVENT_ANCHOR_DOWN, &ei);
}
static void
_signal_anchor_geoms_do_things_with_lol(sd, &ei);
if (!sd->disabled)
- efl_event_callback_call(data, EFL_UI_TEXT_EVENT_ANCHOR_UP, &ei);
+ efl_event_callback_legacy_call(data, EFL_UI_TEXT_EVENT_ANCHOR_UP, &ei);
}
static void
ei.hover_right = tmp;
}
- efl_event_callback_call(obj, EFL_UI_TEXT_EVENT_ANCHOR_HOVER_OPENED, &ei);
+ efl_event_callback_legacy_call(obj, EFL_UI_TEXT_EVENT_ANCHOR_HOVER_OPENED, &ei);
efl_event_callback_add
(sd->anchor_hover.hover, EFL_UI_EVENT_CLICKED, _anchor_hover_clicked_cb, obj);
if (!sd->disabled)
{
- efl_event_callback_call(data, EFL_UI_TEXT_EVENT_ANCHOR_CLICKED, &ei);
+ efl_event_callback_legacy_call(data, EFL_UI_TEXT_EVENT_ANCHOR_CLICKED, &ei);
_entry_hover_anchor_clicked_do(data, &ei);
}
}
_signal_anchor_geoms_do_things_with_lol(sd, &ei);
if (!sd->disabled)
- efl_event_callback_call(data, EFL_UI_TEXT_EVENT_ANCHOR_IN, &ei);
+ efl_event_callback_legacy_call(data, EFL_UI_TEXT_EVENT_ANCHOR_IN, &ei);
}
static void
_signal_anchor_geoms_do_things_with_lol(sd, &ei);
if (!sd->disabled)
- efl_event_callback_call(data, EFL_UI_TEXT_EVENT_ANCHOR_OUT, &ei);
+ efl_event_callback_legacy_call(data, EFL_UI_TEXT_EVENT_ANCHOR_OUT, &ei);
}
static void
const char *emission EINA_UNUSED,
const char *source EINA_UNUSED)
{
- efl_event_callback_call(data, EFL_UI_TEXT_EVENT_ACTIVATED, NULL);
+ efl_event_callback_legacy_call(data, EFL_UI_TEXT_EVENT_ACTIVATED, NULL);
}
static void
const char *emission EINA_UNUSED,
const char *source EINA_UNUSED)
{
- efl_event_callback_call(data, EFL_UI_TEXT_EVENT_ABORTED, NULL);
+ efl_event_callback_legacy_call(data, EFL_UI_TEXT_EVENT_ABORTED, NULL);
}
static void
const char *emission EINA_UNUSED,
const char *source EINA_UNUSED)
{
- efl_event_callback_call(data, EFL_UI_TEXT_EVENT_PRESS, NULL);
+ efl_event_callback_legacy_call(data, EFL_UI_TEXT_EVENT_PRESS, NULL);
}
static void
const char *emission EINA_UNUSED,
const char *source EINA_UNUSED)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_EVENT_CLICKED, NULL);
}
const char *emission EINA_UNUSED,
const char *source EINA_UNUSED)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_EVENT_CLICKED_DOUBLE, NULL);
}
const char *emission EINA_UNUSED,
const char *source EINA_UNUSED)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_EVENT_CLICKED_TRIPLE, NULL);
}
free(sd->append_text_left);
sd->append_text_left = NULL;
sd->append_text_idler = NULL;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_TEXT_EVENT_TEXT_SET_DONE, NULL);
return ECORE_CALLBACK_CANCEL;
}
}
edje_object_part_text_cursor_pos_set(sd->entry_edje, "elm.text",
EDJE_CURSOR_MAIN, sd->cursor_pos);
- efl_event_callback_call(obj, EFL_UI_TEXT_EVENT_TEXT_SET_DONE, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_TEXT_EVENT_TEXT_SET_DONE, NULL);
}
}
}
edje_object_signal_emit(sd->entry_edje, "elm,state,select,off", "elm");
}
if (sd->have_selection)
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SELECTION_CLEARED, NULL);
sd->have_selection = EINA_FALSE;
{
EFL_UI_TEXT_DATA_GET(obj, sd);
/* here we need to emit the signal that the elm_scroller would have done */
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SCROLL, NULL);
if (sd->have_selection)
if (!elm_widget_disabled_get(obj) &&
!evas_object_freeze_events_get(obj))
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_CLICKED, NULL);
if (sd->editable && sd->input_panel_enable)
edje_object_part_text_input_panel_show(sd->entry_edje, "elm.text");
{ \
edje_object_signal_emit(cursd->edje, \
"elm,action,hide_blocker", "elm"); \
- efl_event_callback_call(cursd->main_menu, ELM_MENU_EVENT_ELM_ACTION_UNBLOCK_MENU, NULL); \
+ efl_event_callback_legacy_call(cursd->main_menu, ELM_MENU_EVENT_ELM_ACTION_UNBLOCK_MENU, NULL); \
} \
}
{ \
edje_object_signal_emit(cursd->edje, \
"elm,action,show_blocker", "elm"); \
- efl_event_callback_call(cursd->main_menu, EFL_UI_WIN_EVENT_ELM_ACTION_BLOCK_MENU, NULL); \
+ efl_event_callback_legacy_call(cursd->main_menu, EFL_UI_WIN_EVENT_ELM_ACTION_BLOCK_MENU, NULL); \
} \
}
ecore_evas_geometry_get(ee, &x, &y, NULL, NULL);
sd->screen.x = x;
sd->screen.y = y;
- efl_event_callback_call(sd->obj, EFL_GFX_EVENT_MOVE, NULL);
+ efl_event_callback_legacy_call(sd->obj, EFL_GFX_EVENT_MOVE, NULL);
evas_nochange_push(evas_object_evas_get(sd->obj));
sd->response++;
evas_object_move(sd->obj, x, y);
EINA_LIST_FOREACH(sub, l, ee2)
ecore_evas_window_profile_set(ee2, sd->profile.name);
- efl_event_callback_call(sd->obj, EFL_UI_WIN_EVENT_PROFILE_CHANGED, NULL);
+ efl_event_callback_legacy_call(sd->obj, EFL_UI_WIN_EVENT_PROFILE_CHANGED, NULL);
}
#ifdef HAVE_ELEMENTARY_WL2
if ((ch_withdrawn) || (ch_iconified))
{
if (sd->withdrawn)
- efl_event_callback_call(obj, EFL_UI_WIN_EVENT_WITHDRAWN, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_WIN_EVENT_WITHDRAWN, NULL);
else if (sd->iconified)
{
- efl_event_callback_call(obj, EFL_UI_WIN_EVENT_ICONIFIED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_WIN_EVENT_ICONIFIED, NULL);
if (_elm_config->atspi_mode)
elm_interface_atspi_window_minimized_signal_emit(obj);
}
else
{
- efl_event_callback_call(obj, EFL_UI_WIN_EVENT_NORMAL, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_WIN_EVENT_NORMAL, NULL);
if (_elm_config->atspi_mode)
elm_interface_atspi_window_restored_signal_emit(obj);
}
if (ch_sticky)
{
if (sd->sticky)
- efl_event_callback_call(obj, EFL_UI_WIN_EVENT_STICK, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_WIN_EVENT_STICK, NULL);
else
- efl_event_callback_call(obj, EFL_UI_WIN_EVENT_UNSTICK, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_WIN_EVENT_UNSTICK, NULL);
}
if (ch_fullscreen)
{
if (need_frame)
sd->wl.opaque_dirty = 1;
#endif
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_WIN_EVENT_FULLSCREEN, NULL);
}
else
_elm_win_frame_obj_update(sd);
}
#endif
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_WIN_EVENT_UNFULLSCREEN, NULL);
}
}
{
if (sd->maximized)
{
- efl_event_callback_call(obj, EFL_UI_WIN_EVENT_MAXIMIZED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_WIN_EVENT_MAXIMIZED, NULL);
if (_elm_config->atspi_mode)
elm_interface_atspi_window_maximized_signal_emit(obj);
}
else
{
- efl_event_callback_call(obj, EFL_UI_WIN_EVENT_UNMAXIMIZED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_WIN_EVENT_UNMAXIMIZED, NULL);
if (_elm_config->atspi_mode)
elm_interface_atspi_window_restored_signal_emit(obj);
}
_elm_win_xwin_update(sd);
#endif
elm_widget_orientation_set(obj, sd->rot);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_WIN_EVENT_ROTATION_CHANGED, NULL);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_WIN_EVENT_WM_ROTATION_CHANGED, NULL);
}
}
if (evas_focus_get(evas_object_evas_get(win)) == win)
return;
- efl_event_callback_call(win, ev->desc, evt);
+ efl_event_callback_legacy_call(win, ev->desc, evt);
}
static void
if (!evdata || evdata->win_fed)
return;
- efl_event_callback_call(win, ev->desc, evt);
+ efl_event_callback_legacy_call(win, ev->desc, evt);
}
/* feed events from the window to evas - for fake inputs */
return;
evdata->win_fed = EINA_TRUE;
- efl_event_callback_call(evas, ev->desc, evt);
+ efl_event_callback_legacy_call(evas, ev->desc, evt);
evdata->win_fed = EINA_FALSE;
evdata->evas_done = EINA_FALSE;
}
return;
evdata->win_fed = EINA_TRUE;
- efl_event_callback_call(evas, ev->desc, evt);
+ efl_event_callback_legacy_call(evas, ev->desc, evt);
evdata->win_fed = EINA_FALSE;
evdata->evas_done = EINA_FALSE;
}
Efl_Gfx_Event_Render_Post *ev = event_info;
Eo *win = data;
- efl_event_callback_call(win, EFL_CANVAS_EVENT_RENDER_POST, ev);
+ efl_event_callback_legacy_call(win, EFL_CANVAS_EVENT_RENDER_POST, ev);
}
static void
Eo *win = data;
_elm_win_throttle_ok = EINA_TRUE;
- efl_event_callback_call(win, EFL_CANVAS_EVENT_RENDER_PRE, NULL);
+ efl_event_callback_legacy_call(win, EFL_CANVAS_EVENT_RENDER_PRE, NULL);
}
static void
Eo *win = data;
_elm_win_throttle_ok = EINA_TRUE;
- efl_event_callback_call(win, EFL_CANVAS_EVENT_FOCUS_IN, NULL);
+ efl_event_callback_legacy_call(win, EFL_CANVAS_EVENT_FOCUS_IN, NULL);
}
static void
{
Eo *win = data;
- efl_event_callback_call(win, EFL_CANVAS_EVENT_FOCUS_OUT, NULL);
+ efl_event_callback_legacy_call(win, EFL_CANVAS_EVENT_FOCUS_OUT, NULL);
}
static void
Eo *win = data;
_elm_win_throttle_ok = EINA_TRUE;
- efl_event_callback_call(win, EFL_CANVAS_EVENT_OBJECT_FOCUS_IN, object);
+ efl_event_callback_legacy_call(win, EFL_CANVAS_EVENT_OBJECT_FOCUS_IN, object);
}
static void
Eo *object = event_info;
Eo *win = data;
- efl_event_callback_call(win, EFL_CANVAS_EVENT_OBJECT_FOCUS_OUT, object);
+ efl_event_callback_legacy_call(win, EFL_CANVAS_EVENT_OBJECT_FOCUS_OUT, object);
}
static void
Eo *device = event_info;
Eo *win = data;
- efl_event_callback_call(win, EFL_CANVAS_EVENT_DEVICE_CHANGED, device);
+ efl_event_callback_legacy_call(win, EFL_CANVAS_EVENT_DEVICE_CHANGED, device);
}
static void
{
sd->screen.x = x;
sd->screen.y = y;
- efl_event_callback_call(obj, EFL_GFX_EVENT_MOVE, NULL);
+ efl_event_callback_legacy_call(obj, EFL_GFX_EVENT_MOVE, NULL);
}
return;
}
{
sd->screen.x = x;
sd->screen.y = y;
- efl_event_callback_call(obj, EFL_GFX_EVENT_MOVE, NULL);
+ efl_event_callback_legacy_call(obj, EFL_GFX_EVENT_MOVE, NULL);
}
if (sd->frame_obj)
{
int autodel = sd->autodel;
sd->autodel_clear = &autodel;
evas_object_ref(obj);
- efl_event_callback_call(obj, EFL_UI_WIN_EVENT_DELETE_REQUEST, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_WIN_EVENT_DELETE_REQUEST, NULL);
if (sd->autohide)
evas_object_hide(obj);
// FIXME: if above callback deletes - then the below will be invalid
if (e->win == sd->x.xwin)
{
sd->indmode = (Elm_Win_Indicator_Mode)ecore_x_e_illume_indicator_state_get(e->win);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, EFL_UI_WIN_EVENT_INDICATOR_PROP_CHANGED, NULL);
}
}
int autodel = sd->autodel;
sd->autodel_clear = &autodel;
evas_object_ref(win);
- efl_event_callback_call(win, EFL_UI_WIN_EVENT_DELETE_REQUEST, NULL);
+ efl_event_callback_legacy_call(win, EFL_UI_WIN_EVENT_DELETE_REQUEST, NULL);
if (sd->autohide)
evas_object_hide(win);
// FIXME: if above callback deletes - then the below will be invalid
Evas_Object *obj;
EINA_LIST_FOREACH(_elm_win_list, l, obj)
- efl_event_callback_call(obj, EFL_UI_WIN_EVENT_IOERR, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_WIN_EVENT_IOERR, NULL);
elm_exit();
}
#endif
#endif
_elm_win_frame_obj_update(sd);
elm_widget_orientation_set(obj, rotation);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_WIN_EVENT_ROTATION_CHANGED, NULL);
}
edje_object_scale_set(sd->edje,
elm_widget_scale_get(obj) * elm_config_scale_get());
- efl_event_callback_call(obj, EFL_UI_WIN_EVENT_THEME_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_WIN_EVENT_THEME_CHANGED, NULL);
ret = elm_obj_widget_disable(obj);
if (!ret) int_ret = ELM_THEME_APPLY_FAILED;
(sd->x.xwin, ECORE_X_ILLUME_INDICATOR_STATE_OFF);
}
#endif
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_WIN_EVENT_INDICATOR_PROP_CHANGED, NULL);
}
(sd->x.xwin, ECORE_X_ILLUME_INDICATOR_TRANSPARENT);
}
#endif
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_WIN_EVENT_INDICATOR_PROP_CHANGED, NULL);
}
{
sd->expanded = EINA_FALSE;
evas_object_hide(sd->hover);
- efl_event_callback_call(data, ELM_COMBOBOX_EVENT_DISMISSED, NULL);
+ efl_event_callback_legacy_call(data, ELM_COMBOBOX_EVENT_DISMISSED, NULL);
}
}
evas_object_show(sd->genlist);
elm_genlist_item_selected_set(sd->item, EINA_TRUE);
evas_object_show(sd->hover);
- efl_event_callback_call(obj, ELM_COMBOBOX_EVENT_EXPANDED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_COMBOBOX_EVENT_EXPANDED, NULL);
}
static void
ELM_COMBOBOX_DATA_GET(data, sd);
elm_object_focus_set(sd->entry, EINA_TRUE);
- efl_event_callback_call(data, ELM_COMBOBOX_EVENT_ITEM_SELECTED, event);
+ efl_event_callback_legacy_call(data, ELM_COMBOBOX_EVENT_ITEM_SELECTED, event);
}
static void
_on_item_pressed(void *data , Evas_Object *obj EINA_UNUSED, void *event)
{
- efl_event_callback_call(data, ELM_COMBOBOX_EVENT_ITEM_PRESSED, event);
+ efl_event_callback_legacy_call(data, ELM_COMBOBOX_EVENT_ITEM_PRESSED, event);
}
static void
return;
}
- efl_event_callback_call(data, ELM_COMBOBOX_EVENT_FILTER_DONE, event->info);
+ efl_event_callback_legacy_call(data, ELM_COMBOBOX_EVENT_FILTER_DONE, event->info);
if (sd->count > 0)
{
static void
_on_changed(void *data, const Eo_Event *event EINA_UNUSED)
{
- efl_event_callback_call(data, ELM_ENTRY_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(data, ELM_ENTRY_EVENT_CHANGED, NULL);
}
static void
{
sd->expanded = EINA_FALSE;
evas_object_hide(sd->hover);
- efl_event_callback_call(obj, ELM_COMBOBOX_EVENT_DISMISSED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_COMBOBOX_EVENT_DISMISSED, NULL);
} // for backward compatibility
}
elm_combobox_hover_begin(obj);
else
{
- efl_event_callback_call(sd->genlist, EFL_UI_EVENT_PRESSED, sd->item);
+ efl_event_callback_legacy_call(sd->genlist, EFL_UI_EVENT_PRESSED, sd->item);
elm_entry_cursor_end_set(sd->entry);
}
return EINA_TRUE;
_show_signals_emit(obj, sd->dir);
- efl_event_callback_call(obj, ELM_CTXPOPUP_EVENT_GEOMETRY_UPDATE, &rect);
+ efl_event_callback_legacy_call(obj, ELM_CTXPOPUP_EVENT_GEOMETRY_UPDATE, &rect);
}
static void
sd->dir = ELM_CTXPOPUP_DIRECTION_UNKNOWN;
evas_object_hide(data);
- efl_event_callback_call(data, ELM_CTXPOPUP_EVENT_DISMISSED, NULL);
+ efl_event_callback_legacy_call(data, ELM_CTXPOPUP_EVENT_DISMISSED, NULL);
}
else
{
const char *source EINA_UNUSED)
{
evas_object_hide(data);
- efl_event_callback_call(data, ELM_CTXPOPUP_EVENT_DISMISSED, NULL);
+ efl_event_callback_legacy_call(data, ELM_CTXPOPUP_EVENT_DISMISSED, NULL);
}
static void
}
// EVENTS: should not call legacy
- //efl_event_callback_call
+ //efl_event_callback_legacy_call
// (lreq->obj, ELM_FILESELECTOR_EVENT_DIRECTORY_OPEN, (void *)lreq->model);
evas_object_smart_callback_call(lreq->obj, "directory,open", (void *)lreq->path);
if (!it_data->is_dir)
{
// EVENTS: should not call legacy
- //efl_event_callback_call
+ //efl_event_callback_legacy_call
// (data, ELM_FILESELECTOR_EVENT_ACTIVATED, (void *)it_data->model);
evas_object_smart_callback_call(data, "activated", (void *)it_data->path);
return;
elm_object_text_set(sd->name_entry, it_data->filename);
// EVENTS: should not call legacy
- //efl_event_callback_call
+ //efl_event_callback_legacy_call
// (data, EFL_UI_EVENT_SELECTED, (void *)it_data->model);
evas_object_smart_callback_call(data, "selected", (void *)it_data->path);
}
if (!sd->model || !sd->path)
{
// EVENTS: should not call legacy
- //efl_event_callback_call(fs, ELM_FILESELECTOR_EVENT_DONE, NULL);
+ //efl_event_callback_legacy_call(fs, ELM_FILESELECTOR_EVENT_DONE, NULL);
evas_object_smart_callback_call(fs, "done", NULL);
return;
}
_model_str_property_set(selected_model, "path", selection, NULL);
// EVENTS: should not call legacy
- //efl_event_callback_call
+ //efl_event_callback_legacy_call
// (fs, ELM_FILESELECTOR_EVENT_DONE, selected_model);
evas_object_smart_callback_call(fs, "done", (void *) selection);
if (it_data)
{
// EVENTS: should not call legacy
- //efl_event_callback_call
+ //efl_event_callback_legacy_call
// (fs, ELM_FILESELECTOR_EVENT_DONE, it_data->model);
evas_object_smart_callback_call(fs, "done", (void *) it_data->path);
}
// EVENTS: should not call legacy
- //efl_event_callback_call
+ //efl_event_callback_legacy_call
// (fs, ELM_FILESELECTOR_EVENT_DONE, sd->model);
evas_object_smart_callback_call(fs, "done", (void *) sd->path);
}
Evas_Object *fs = data;
// EVENTS: should not call legacy
- //efl_event_callback_call(fs, ELM_FILESELECTOR_EVENT_DONE, NULL);
+ //efl_event_callback_legacy_call(fs, ELM_FILESELECTOR_EVENT_DONE, NULL);
evas_object_smart_callback_call(fs, "done", NULL);
}
if (sd->only_folder)
{
// EVENTS: should not call legacy
- //efl_event_callback_call
+ //efl_event_callback_legacy_call
// (fs, EFL_UI_EVENT_SELECTED, (void *)model);
evas_object_smart_callback_call(fs, "selected", (void *) str);
}
if (sd->only_folder)
{
// EVENTS: should not call legacy
- //efl_event_callback_call
+ //efl_event_callback_legacy_call
// (fs, EFL_UI_EVENT_SELECTED, (void *)model);
evas_object_smart_callback_call(fs, "selected", (void *) str);
}
Eina_Stringshare *str = efl_key_data_get(fs, _text_activated_path_key);
// EVENTS: should not call legacy
- //efl_event_callback_call
+ //efl_event_callback_legacy_call
// (fs, EFL_UI_EVENT_SELECTED, (void *)model);
evas_object_smart_callback_call(fs, "selected", (void *)str);
// EVENTS: should not call legacy
- //efl_event_callback_call
+ //efl_event_callback_legacy_call
// (fs, ELM_FILESELECTOR_EVENT_SELECTED_INVALID, (void *)model);
evas_object_smart_callback_call(fs, "selected,invalid", (void *)str);
evas_object_del(del);
// EVENTS: should not call legacy
- //efl_event_callback_call
+ //efl_event_callback_legacy_call
// (sd->obj, ELM_FILESELECTOR_BUTTON_EVENT_FILE_CHOSEN, (void *)model);
}
static void \
_##name##_fwd(void *data, const Eo_Event *ev EINA_UNUSED) \
{ \
- efl_event_callback_call(data, event, ev->info); \
+ efl_event_callback_legacy_call(data, event, ev->info); \
}
SIG_FWD(CHANGED, ELM_FILESELECTOR_ENTRY_EVENT_CHANGED)
SIG_FWD(PRESS, ELM_FILESELECTOR_ENTRY_EVENT_PRESS)
eina_promise_then(promise, _file_chosen_path_then, NULL, data);
// EVENTS: should not call legacy
- //efl_event_callback_call
+ //efl_event_callback_legacy_call
// (data, ELM_FILESELECTOR_ENTRY_EVENT_FILE_CHOSEN, event->info);
}
elm_interface_fileselector_model_set(sd->button, model);
}
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, ELM_FILESELECTOR_ENTRY_EVENT_ACTIVATED, event->info);
}
ELM_HOVERSEL_DATA_GET(obj2, sd);
if (item->func) item->func((void *)WIDGET_ITEM_DATA_GET(eo_it), obj2, eo_it);
- efl_event_callback_call(obj2, EFL_UI_EVENT_SELECTED, eo_it);
+ efl_event_callback_legacy_call(obj2, EFL_UI_EVENT_SELECTED, eo_it);
evas_object_event_callback_add(sd->hover, EVAS_CALLBACK_DEL, _auto_update, item);
{
Elm_Hoversel_Item_Data *it = data;
- efl_event_callback_call(WIDGET(it), ELM_HOVERSEL_EVENT_ITEM_FOCUSED, EO_OBJ(it));
+ efl_event_callback_legacy_call(WIDGET(it), ELM_HOVERSEL_EVENT_ITEM_FOCUSED, EO_OBJ(it));
}
static void
{
Elm_Hoversel_Item_Data *it = data;
- efl_event_callback_call(WIDGET(it), ELM_HOVERSEL_EVENT_ITEM_UNFOCUSED, EO_OBJ(it));
+ efl_event_callback_legacy_call(WIDGET(it), ELM_HOVERSEL_EVENT_ITEM_UNFOCUSED, EO_OBJ(it));
}
static void
sd->scr = NULL;
sd->last_location = NULL;
- efl_event_callback_call(obj, ELM_HOVERSEL_EVENT_DISMISSED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_HOVERSEL_EVENT_DISMISSED, NULL);
}
static void
_resizing_eval(obj, sd);
elm_object_part_content_set(sd->hover, sd->last_location, sd->tbl);
- efl_event_callback_call(obj, ELM_HOVERSEL_EVENT_EXPANDED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_HOVERSEL_EVENT_EXPANDED, NULL);
evas_object_show(sd->hover);
}
evas_object_show(sd->end);
sd->view_state = MULTIBUTTONENTRY_VIEW_SHRINK;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_MULTIBUTTONENTRY_EVENT_EXPAND_STATE_CHANGED, (void *)1);
break;
}
}
sd->view_state = MULTIBUTTONENTRY_VIEW_NONE;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_MULTIBUTTONENTRY_EVENT_EXPAND_STATE_CHANGED, (void *)(uintptr_t)sd->shrink);
}
elm_entry_input_panel_show(sd->entry);
}
}
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_WIDGET_EVENT_FOCUSED, NULL);
}
else
_view_update(sd);
elm_entry_input_panel_hide(sd->entry);
}
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_WIDGET_EVENT_UNFOCUSED, NULL);
}
elm_box_unpack(sd->box, VIEW(item));
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_MULTIBUTTONENTRY_EVENT_ITEM_DELETED, EO_OBJ(item));
if (sd->selected_it == item)
{
case MULTIBUTTONENTRY_BUTTON_STATE_SELECTED:
elm_layout_signal_emit(VIEW(item), "elm,state,focused", "elm");
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_MULTIBUTTONENTRY_EVENT_ITEM_SELECTED, EO_OBJ(item));
break;
case MULTIBUTTONENTRY_BUTTON_STATE_DEFAULT:
_item_select(WIDGET(it), it);
if (sd->selected_it)
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), ELM_MULTIBUTTONENTRY_EVENT_ITEM_CLICKED, eo_it);
}
sd->longpress_timer = NULL;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), ELM_MULTIBUTTONENTRY_EVENT_ITEM_LONGPRESSED, EO_OBJ(it));
return ECORE_CALLBACK_CANCEL;
break;
}
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_MULTIBUTTONENTRY_EVENT_ITEM_ADDED, eo_item);
if (_elm_config->atspi_mode)
const char *emission EINA_UNUSED,
const char *source EINA_UNUSED)
{
- efl_event_callback_call(obj, EFL_UI_EVENT_CLICKED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_EVENT_CLICKED, NULL);
}
static void
elm_box_padding_get(obj, &hpad, NULL);
if (sd->h_box < h)
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->parent, ELM_MULTIBUTTONENTRY_EVENT_EXPANDED, NULL);
else if (sd->h_box > h)
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->parent, ELM_MULTIBUTTONENTRY_EVENT_CONTRACTED, NULL);
if (sd->items && sd->w_box != w)
_key_action_longpress(Eo *obj, const char *params EINA_UNUSED)
{
ELM_MULTIBUTTONENTRY_ITEM_DATA_GET(obj, it);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), ELM_MULTIBUTTONENTRY_EVENT_ITEM_LONGPRESSED, obj);
return EINA_TRUE;
}
{
Elm_Naviframe_Item_Data *it = data;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), ELM_NAVIFRAME_EVENT_TITLE_TRANSITION_FINISHED, EO_OBJ(it));
}
{
Elm_Naviframe_Item_Data *it = data;
- efl_event_callback_call(WIDGET(it), ELM_NAVIFRAME_EVENT_TITLE_CLICKED, EO_OBJ(it));
+ efl_event_callback_legacy_call(WIDGET(it), ELM_NAVIFRAME_EVENT_TITLE_CLICKED, EO_OBJ(it));
}
/* "elm,state,cur,pushed"
it->pushing = EINA_FALSE;
- efl_event_callback_call(WIDGET(it), ELM_NAVIFRAME_EVENT_TRANSITION_FINISHED, EO_OBJ(it));
+ efl_event_callback_legacy_call(WIDGET(it), ELM_NAVIFRAME_EVENT_TRANSITION_FINISHED, EO_OBJ(it));
}
static void
///Leave for compatibility.
ELM_NAVIFRAME_ITEM_DATA_GET(eo_item, it);
if (it->title_prev_btn)
- efl_event_callback_call(it->title_prev_btn, EFL_UI_EVENT_CLICKED, NULL);
+ efl_event_callback_legacy_call(it->title_prev_btn, EFL_UI_EVENT_CLICKED, NULL);
return EINA_TRUE;
}
elm_video_play_position_set(sd->video, pos);
elm_layout_signal_emit(data, "elm,button,forward", "elm");
- efl_event_callback_call(data, ELM_PLAYER_EVENT_FORWARD_CLICKED, NULL);
+ efl_event_callback_legacy_call(data, ELM_PLAYER_EVENT_FORWARD_CLICKED, NULL);
}
static void
_info(void *data, const Eo_Event *event EINA_UNUSED)
{
elm_layout_signal_emit(data, "elm,button,info", "elm");
- efl_event_callback_call(data, ELM_PLAYER_EVENT_INFO_CLICKED, NULL);
+ efl_event_callback_legacy_call(data, ELM_PLAYER_EVENT_INFO_CLICKED, NULL);
}
static void
_next(void *data, const Eo_Event *event EINA_UNUSED)
{
elm_layout_signal_emit(data, "elm,button,next", "elm");
- efl_event_callback_call(data, ELM_PLAYER_EVENT_NEXT_CLICKED, NULL);
+ efl_event_callback_legacy_call(data, ELM_PLAYER_EVENT_NEXT_CLICKED, NULL);
}
static void
elm_layout_signal_emit(data, "elm,player,pause", "elm");
elm_video_pause(sd->video);
- efl_event_callback_call(data, ELM_PLAYER_EVENT_PAUSE_CLICKED, NULL);
+ efl_event_callback_legacy_call(data, ELM_PLAYER_EVENT_PAUSE_CLICKED, NULL);
}
static void
elm_layout_signal_emit(data, "elm,player,play", "elm");
elm_video_play(sd->video);
- efl_event_callback_call(data, ELM_PLAYER_EVENT_PLAY_CLICKED, NULL);
+ efl_event_callback_legacy_call(data, ELM_PLAYER_EVENT_PLAY_CLICKED, NULL);
}
static void
_prev(void *data, const Eo_Event *event EINA_UNUSED)
{
- efl_event_callback_call(data, ELM_PLAYER_EVENT_PREV_CLICKED, NULL);
+ efl_event_callback_legacy_call(data, ELM_PLAYER_EVENT_PREV_CLICKED, NULL);
elm_layout_signal_emit(data, "elm,button,prev", "elm");
}
elm_video_play_position_set(sd->video, pos);
elm_layout_signal_emit(data, "elm,button,rewind", "elm");
- efl_event_callback_call(data, ELM_PLAYER_EVENT_REWIND_CLICKED, NULL);
+ efl_event_callback_legacy_call(data, ELM_PLAYER_EVENT_REWIND_CLICKED, NULL);
}
static void
_stop(void *data, const Eo_Event *event EINA_UNUSED)
{
elm_layout_signal_emit(data, "elm,button,stop", "elm");
- efl_event_callback_call(data, ELM_PLAYER_EVENT_QUALITY_CLICKED, NULL);
+ efl_event_callback_legacy_call(data, ELM_PLAYER_EVENT_QUALITY_CLICKED, NULL);
}
static void
elm_layout_signal_emit(data, "elm,button,eject", "elm");
emotion_object_eject(elm_video_emotion_get(sd->video));
- efl_event_callback_call(data, ELM_PLAYER_EVENT_EJECT_CLICKED, NULL);
+ efl_event_callback_legacy_call(data, ELM_PLAYER_EVENT_EJECT_CLICKED, NULL);
}
static void
{
elm_layout_signal_emit(data, "elm,button,volume", "elm");
_mute_toggle(data);
- efl_event_callback_call(data, ELM_PLAYER_EVENT_VOLUME_CLICKED, NULL);
+ efl_event_callback_legacy_call(data, ELM_PLAYER_EVENT_VOLUME_CLICKED, NULL);
}
static void
{
elm_layout_signal_emit(data, "elm,button,mute", "elm");
_mute_toggle(data);
- efl_event_callback_call(data, ELM_PLAYER_EVENT_MUTE_CLICKED, NULL);
+ efl_event_callback_legacy_call(data, ELM_PLAYER_EVENT_MUTE_CLICKED, NULL);
}
static void
static void
_block_clicked_cb(void *data, const Eo_Event *event EINA_UNUSED)
{
- efl_event_callback_call(data, ELM_POPUP_EVENT_BLOCK_CLICKED, NULL);
+ efl_event_callback_legacy_call(data, ELM_POPUP_EVENT_BLOCK_CLICKED, NULL);
}
static void
_timeout_cb(void *data, const Eo_Event *event EINA_UNUSED)
{
evas_object_hide(data);
- efl_event_callback_call(data, ELM_POPUP_EVENT_TIMEOUT, NULL);
+ efl_event_callback_legacy_call(data, ELM_POPUP_EVENT_TIMEOUT, NULL);
}
static void
_hide_effect_finished_cb(void *data, const Eo_Event *event EINA_UNUSED)
{
- efl_event_callback_call(data, ELM_POPUP_EVENT_DISMISSED, NULL);
+ efl_event_callback_legacy_call(data, ELM_POPUP_EVENT_DISMISSED, NULL);
}
{
Elm_Popup_Item_Data *it = data;
- efl_event_callback_call(WIDGET(it), ELM_POPUP_EVENT_ITEM_FOCUSED, EO_OBJ(it));
+ efl_event_callback_legacy_call(WIDGET(it), ELM_POPUP_EVENT_ITEM_FOCUSED, EO_OBJ(it));
}
static void
{
Elm_Popup_Item_Data *it = data;
- efl_event_callback_call(WIDGET(it), ELM_POPUP_EVENT_ITEM_UNFOCUSED, EO_OBJ(it));
+ efl_event_callback_legacy_call(WIDGET(it), ELM_POPUP_EVENT_ITEM_UNFOCUSED, EO_OBJ(it));
}
EOLIAN static Eo *
static Eina_Bool
_action_dismiss(Evas_Object *obj, const char *params EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_POPUP_EVENT_BLOCK_CLICKED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_POPUP_EVENT_BLOCK_CLICKED, NULL);
return EINA_TRUE;
}
edje_object_part_drag_value_get
(wd->resize_obj, "elm.drag_button_base", &pos, NULL);
if (pos == 0.0)
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_ACTIONSLIDER_EVENT_POS_CHANGED, !elm_widget_mirrored_get(obj) ? "left" : "right");
else if (pos == 1.0)
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_ACTIONSLIDER_EVENT_POS_CHANGED, !elm_widget_mirrored_get(obj) ? "right" : "left");
else if (pos >= 0.45 && pos <= 0.55)
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_ACTIONSLIDER_EVENT_POS_CHANGED, "center");
}
if ((!sd->final_position) &&
(sd->enabled_position & ELM_ACTIONSLIDER_LEFT))
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SELECTED, (char *)left);
else if ((sd->final_position == 0.5) &&
(sd->enabled_position & ELM_ACTIONSLIDER_CENTER))
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SELECTED, (char *)center);
else if ((sd->final_position == 1) &&
(sd->enabled_position & ELM_ACTIONSLIDER_RIGHT))
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SELECTED, (char *)right);
sd->button_animator = NULL;
(elm_widget_mirrored_get(obj) && position == 1.0)))
{
sd->final_position = 0;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SELECTED, (char *)left);
return;
(sd->enabled_position & ELM_ACTIONSLIDER_CENTER))
{
sd->final_position = 0.5;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SELECTED, (char *)center);
ecore_animator_del(sd->button_animator);
(elm_widget_mirrored_get(obj) && position == 0.0)))
{
sd->final_position = 1;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SELECTED, (char *)right);
return;
}
{
if (sd->enabled_position & ELM_ACTIONSLIDER_CENTER)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_ACTIONSLIDER_EVENT_POS_CHANGED, "center");
sd->final_position = 0.5;
}
else if (sd->enabled_position & ELM_ACTIONSLIDER_RIGHT)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_ACTIONSLIDER_EVENT_POS_CHANGED, "right");
sd->final_position = 1.0;
}
else if ((sd->final_position == 0.5) &&
(sd->enabled_position & ELM_ACTIONSLIDER_RIGHT))
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_ACTIONSLIDER_EVENT_POS_CHANGED, "right");
sd->final_position = 1.0;
}
{
if (sd->enabled_position & ELM_ACTIONSLIDER_CENTER)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_ACTIONSLIDER_EVENT_POS_CHANGED, "center");
sd->final_position = 0.5;
}
{
if (sd->enabled_position & ELM_ACTIONSLIDER_CENTER)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_ACTIONSLIDER_EVENT_POS_CHANGED, "center");
sd->final_position = 0.5;
}
else if (sd->enabled_position & ELM_ACTIONSLIDER_LEFT)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_ACTIONSLIDER_EVENT_POS_CHANGED, "left");
sd->final_position = 0.0;
}
else if (sd->final_position == 0.5 &&
(sd->enabled_position & ELM_ACTIONSLIDER_LEFT))
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_ACTIONSLIDER_EVENT_POS_CHANGED, "left");
sd->final_position = 0.0;
}
view = efl_add(ELM_APP_CLIENT_VIEW_CLASS, eo, elm_app_client_view_path_set(efl_self, obj_path));
eina_hash_add(data->views, obj_path, view);
if (!loading_list)
- efl_event_callback_call(eo, ELM_APP_CLIENT_EVENT_VIEW_CREATED, view);
+ efl_event_callback_legacy_call(eo, ELM_APP_CLIENT_EVENT_VIEW_CREATED, view);
}
}
while (eldbus_message_iter_get_and_next(array_path, '{', &path))
_sub_path_process(eo, path, cdata, EINA_TRUE);
- efl_event_callback_call(eo, ELM_APP_CLIENT_EVENT_VIEW_LIST_LOADED, NULL);
+ efl_event_callback_legacy_call(eo, ELM_APP_CLIENT_EVENT_VIEW_LIST_LOADED, NULL);
}
static void _iface_add(void *data, const Eldbus_Message *msg)
}
eina_hash_del(cdata->views, path, NULL);
- efl_event_callback_call(eo, ELM_APP_CLIENT_EVENT_VIEW_DELETED, view);
+ efl_event_callback_legacy_call(eo, ELM_APP_CLIENT_EVENT_VIEW_DELETED, view);
efl_del(view);
}
}
}
eina_hash_del(cdata->views, path, NULL);
- efl_event_callback_call(eo, ELM_APP_CLIENT_EVENT_VIEW_DELETED, view);
+ efl_event_callback_legacy_call(eo, ELM_APP_CLIENT_EVENT_VIEW_DELETED, view);
efl_del(view);
}
}
{
view = efl_add(ELM_APP_CLIENT_VIEW_CLASS, eo, elm_app_client_view_path_set(efl_self, view_path));
eina_hash_add(cdata->views, view_path, view);
- efl_event_callback_call(eo, ELM_APP_CLIENT_EVENT_VIEW_CREATED, view);
+ efl_event_callback_legacy_call(eo, ELM_APP_CLIENT_EVENT_VIEW_CREATED, view);
}
if (!view)
Elm_App_Client_View_Data *cdata = efl_data_scope_get(eo, MY_CLASS);
if (!strcmp(prop_event->name, "Title"))
- efl_event_callback_call(eo, ELM_APP_CLIENT_VIEW_EVENT_TITLE_CHANGED, (void *) _string_prop_get(v));
+ efl_event_callback_legacy_call(eo, ELM_APP_CLIENT_VIEW_EVENT_TITLE_CHANGED, (void *) _string_prop_get(v));
else if (!strcmp(prop_event->name, "IconName"))
- efl_event_callback_call(eo, ELM_APP_CLIENT_VIEW_EVENT_ICON_CHANGED, (void *) _string_prop_get(v));
+ efl_event_callback_legacy_call(eo, ELM_APP_CLIENT_VIEW_EVENT_ICON_CHANGED, (void *) _string_prop_get(v));
else if (!strcmp(prop_event->name, "IconPixels"))
- efl_event_callback_call(eo, ELM_APP_CLIENT_VIEW_EVENT_ICON_PIXELS_CHANGED, NULL);
+ efl_event_callback_legacy_call(eo, ELM_APP_CLIENT_VIEW_EVENT_ICON_PIXELS_CHANGED, NULL);
else if (!strcmp(prop_event->name, "NewEvents"))
- efl_event_callback_call(eo, ELM_APP_CLIENT_VIEW_EVENT_NEW_EVENTS_CHANGED, (void *)(uintptr_t)_int_prop_get(v));
+ efl_event_callback_legacy_call(eo, ELM_APP_CLIENT_VIEW_EVENT_NEW_EVENTS_CHANGED, (void *)(uintptr_t)_int_prop_get(v));
else if (!strcmp(prop_event->name, "Progress"))
- efl_event_callback_call(eo, ELM_APP_CLIENT_VIEW_EVENT_PROGRESS_CHANGED, (void *)(uintptr_t)_short_prop_get(v));
+ efl_event_callback_legacy_call(eo, ELM_APP_CLIENT_VIEW_EVENT_PROGRESS_CHANGED, (void *)(uintptr_t)_short_prop_get(v));
else if (!strcmp(prop_event->name, "State"))
{
cdata->state = _string_state_to_id(_string_prop_get(v));
- efl_event_callback_call(eo, ELM_APP_CLIENT_VIEW_EVENT_STATE_CHANGED, (void *)(uintptr_t)cdata->state);
+ efl_event_callback_legacy_call(eo, ELM_APP_CLIENT_VIEW_EVENT_STATE_CHANGED, (void *)(uintptr_t)cdata->state);
}
else if (!strcmp(prop_event->name, "WindowId"))
- efl_event_callback_call(eo, ELM_APP_CLIENT_VIEW_EVENT_WINDOW_CHANGED, (void *)(uintptr_t)_int_prop_get(v));
+ efl_event_callback_legacy_call(eo, ELM_APP_CLIENT_VIEW_EVENT_WINDOW_CHANGED, (void *)(uintptr_t)_int_prop_get(v));
else
return;
- efl_event_callback_call(eo, ELM_APP_CLIENT_VIEW_EVENT_PROPERTY_CHANGED, (void *) prop_event->name);
+ efl_event_callback_legacy_call(eo, ELM_APP_CLIENT_VIEW_EVENT_PROPERTY_CHANGED, (void *) prop_event->name);
}
static void
cdata->state = state;
if (!changed)
return;
- efl_event_callback_call(eo, ELM_APP_CLIENT_VIEW_EVENT_STATE_CHANGED, (void *)(uintptr_t)cdata->state);
+ efl_event_callback_legacy_call(eo, ELM_APP_CLIENT_VIEW_EVENT_STATE_CHANGED, (void *)(uintptr_t)cdata->state);
}
EOLIAN static Eo *
{
Eo *eo = eldbus_service_object_data_get(iface, MY_CLASS_NAME);
- efl_event_callback_call(eo, ELM_APP_SERVER_EVENT_TERMINATE, NULL);
+ efl_event_callback_legacy_call(eo, ELM_APP_SERVER_EVENT_TERMINATE, NULL);
return eldbus_message_method_return_new(message);
}
icon_name = elm_app_server_view_icon_get(view);
new_events = elm_app_server_view_new_events_get(view);
progress = elm_app_server_view_progress_get(view);
- efl_event_callback_call(view, ELM_APP_SERVER_VIEW_EVENT_SAVE, NULL);
+ efl_event_callback_legacy_call(view, ELM_APP_SERVER_VIEW_EVENT_SAVE, NULL);
view_props = elm_app_server_view_props_new(id, title, icon_name,
new_events, progress);
Elm_App_Server_View_Data *data = efl_data_scope_get(eo, MY_CLASS);
_state_set(data, ELM_APP_VIEW_STATE_CLOSED);
- efl_event_callback_call(eo, ELM_APP_SERVER_VIEW_EVENT_CLOSED, NULL);
+ efl_event_callback_legacy_call(eo, ELM_APP_SERVER_VIEW_EVENT_CLOSED, NULL);
return eldbus_message_method_return_new(message);
}
Elm_App_Server_View_Data *data = efl_data_scope_get(eo, MY_CLASS);
_state_set(data, ELM_APP_VIEW_STATE_PAUSED);
- efl_event_callback_call(eo, ELM_APP_SERVER_VIEW_EVENT_PAUSED, NULL);
+ efl_event_callback_legacy_call(eo, ELM_APP_SERVER_VIEW_EVENT_PAUSED, NULL);
return eldbus_message_method_return_new(message);
}
Elm_App_Server_View_Data *data = efl_data_scope_get(eo, MY_CLASS);
_state_set(data, ELM_APP_VIEW_STATE_LIVE);
- efl_event_callback_call(eo, ELM_APP_SERVER_VIEW_EVENT_RESUMED, NULL);
+ efl_event_callback_legacy_call(eo, ELM_APP_SERVER_VIEW_EVENT_RESUMED, NULL);
return eldbus_message_method_return_new(message);
}
_elm_app_server_view_resume(Eo *obj, Elm_App_Server_View_Data *data)
{
_state_set(data, ELM_APP_VIEW_STATE_LIVE);
- efl_event_callback_call(obj, ELM_APP_SERVER_VIEW_EVENT_RESUMED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_APP_SERVER_VIEW_EVENT_RESUMED, NULL);
}
EOLIAN static void
_elm_app_server_view_pause(Eo *obj, Elm_App_Server_View_Data *data)
{
_state_set(data, ELM_APP_VIEW_STATE_PAUSED);
- efl_event_callback_call(obj, ELM_APP_SERVER_VIEW_EVENT_PAUSED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_APP_SERVER_VIEW_EVENT_PAUSED, NULL);
}
EOLIAN static void
_elm_app_server_view_close(Eo *obj, Elm_App_Server_View_Data *data)
{
_state_set(data, ELM_APP_VIEW_STATE_CLOSED);
- efl_event_callback_call(obj, ELM_APP_SERVER_VIEW_EVENT_CLOSED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_APP_SERVER_VIEW_EVENT_CLOSED, NULL);
}
EOLIAN static void
_elm_app_server_view_shallow(Eo *obj, Elm_App_Server_View_Data *data)
{
_state_set(data, ELM_APP_VIEW_STATE_SHALLOW);
- efl_event_callback_call(obj, ELM_APP_SERVER_VIEW_EVENT_SHALLOW, NULL);
+ efl_event_callback_legacy_call(obj, ELM_APP_SERVER_VIEW_EVENT_SHALLOW, NULL);
}
EOLIAN static Elm_App_View_State
}
if (!pd->connected)
- efl_event_callback_call(data, ELM_ATSPI_BRIDGE_EVENT_CONNECTED, NULL);
+ efl_event_callback_legacy_call(data, ELM_ATSPI_BRIDGE_EVENT_CONNECTED, NULL);
pd->connected = EINA_TRUE;
}
elm_interface_atspi_accessible_event_handler_del(ELM_INTERFACE_ATSPI_ACCESSIBLE_MIXIN, pd->event_hdlr);
pd->event_hdlr = NULL;
- efl_event_callback_call(bridge, ELM_ATSPI_BRIDGE_EVENT_DISCONNECTED, NULL);
+ efl_event_callback_legacy_call(bridge, ELM_ATSPI_BRIDGE_EVENT_DISCONNECTED, NULL);
pd->connected = EINA_FALSE;
}
{
Evas_Object *box = data;
Evas_Object_Box_Option *opt = event->info;
- efl_event_callback_call(box, ELM_BOX_EVENT_CHILD_ADDED, opt->obj);
+ efl_event_callback_legacy_call(box, ELM_BOX_EVENT_CHILD_ADDED, opt->obj);
}
static void
{
Evas_Object *box = data;
Evas_Object *child = event->info;
- efl_event_callback_call(box, ELM_BOX_EVENT_CHILD_REMOVED, child);
+ efl_event_callback_legacy_call(box, ELM_BOX_EVENT_CHILD_REMOVED, child);
}
EOLIAN static Eina_Bool
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD)
return;
- efl_event_callback_call(data, EFL_UI_EVENT_CLICKED, NULL);
+ efl_event_callback_legacy_call(data, EFL_UI_EVENT_CLICKED, NULL);
}
/* overriding layout's focus_next() in order to just cycle through the
_elm_access_say(E_("Clicked"));
if (!elm_widget_disabled_get(obj) &&
!evas_object_freeze_events_get(obj))
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_CLICKED, NULL);
}
}
if (act != ELM_ACTIVATE_DEFAULT) return EINA_FALSE;
if (evas_object_freeze_events_get(obj)) return EINA_FALSE;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_CLICKED, NULL);
elm_layout_signal_emit(obj, "elm,anim,activate", "elm");
{
ELM_BUTTON_DATA_GET_OR_RETURN_VAL(data, sd, ECORE_CALLBACK_CANCEL);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_EVENT_REPEATED, NULL);
if (!sd->repeating)
{
(sd->ar_initial_timeout, _autorepeat_initial_send, data);
}
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_EVENT_PRESSED, NULL);
}
ELM_SAFE_FREE(sd->timer, ecore_timer_del);
sd->repeating = EINA_FALSE;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_EVENT_UNPRESSED, NULL);
}
sd->selected_time.tm_mday = maxdays;
_fix_selected_time(sd);
- efl_event_callback_call(obj, ELM_CALENDAR_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_CALENDAR_EVENT_CHANGED, NULL);
}
- efl_event_callback_call(obj, ELM_CALENDAR_EVENT_DISPLAY_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_CALENDAR_EVENT_DISPLAY_CHANGED, NULL);
return EINA_TRUE;
}
sd->selected_time.tm_mday = day;
_fix_selected_time(sd);
_select(obj, sel_it);
- efl_event_callback_call(obj, ELM_CALENDAR_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_CALENDAR_EVENT_CHANGED, NULL);
}
static void
_elm_access_say(E_("State: Off"));
}
- efl_event_callback_call(obj, EFL_UI_CHECK_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_CHECK_EVENT_CHANGED, NULL);
if (_elm_config->atspi_mode)
elm_interface_atspi_accessible_state_changed_signal_emit(obj,
if (sd->statep) *sd->statep = efl_ui_nstate_value_get(obj);
elm_layout_signal_emit(obj, "elm,state,check,off", "elm");
- efl_event_callback_call(obj, EFL_UI_CHECK_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_CHECK_EVENT_CHANGED, NULL);
if (_elm_config->atspi_mode)
elm_interface_atspi_accessible_state_changed_signal_emit(data,
efl_ui_nstate_value_set(obj, 1);
if (sd->statep) *sd->statep = efl_ui_nstate_value_get(obj);
elm_layout_signal_emit(obj, "elm,state,check,on", "elm");
- efl_event_callback_call(obj, EFL_UI_CHECK_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_CHECK_EVENT_CHANGED, NULL);
if (_elm_config->atspi_mode)
elm_interface_atspi_accessible_state_changed_signal_emit(data,
sd->interval = sd->interval / 1.05;
ecore_timer_interval_set(sd->spin, sd->interval);
_time_update(data, EINA_FALSE);
- efl_event_callback_call(data, ELM_CLOCK_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(data, ELM_CLOCK_EVENT_CHANGED, NULL);
return ECORE_CALLBACK_RENEW;
clock_val_up_cancel:
sd->interval = sd->interval / 1.05;
ecore_timer_interval_set(sd->spin, sd->interval);
_time_update(data, EINA_FALSE);
- efl_event_callback_call(data, ELM_CLOCK_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(data, ELM_CLOCK_EVENT_CHANGED, NULL);
return ECORE_CALLBACK_RENEW;
clock_val_down_cancel:
EINA_LIST_FOREACH(code->widgets, item, widget)
{
- efl_event_callback_call(widget, signal, data);
+ efl_event_callback_legacy_call(widget, signal, data);
}
}
if (!was_key)
_elm_code_widget_update_focus_directions(widget);
- efl_event_callback_call(widget, ELM_OBJ_CODE_WIDGET_EVENT_CURSOR_CHANGED, widget);
+ efl_event_callback_legacy_call(widget, ELM_OBJ_CODE_WIDGET_EVENT_CURSOR_CHANGED, widget);
_elm_code_widget_cursor_ensure_visible(widget);
if (oldrow != pd->cursor_line)
if (!line)
return;
- efl_event_callback_call(widget, ELM_OBJ_CODE_WIDGET_EVENT_LINE_GUTTER_CLICKED, line);
+ efl_event_callback_legacy_call(widget, ELM_OBJ_CODE_WIDGET_EVENT_LINE_GUTTER_CLICKED, line);
}
static void
if (!line)
return;
- efl_event_callback_call(widget, ELM_OBJ_CODE_WIDGET_EVENT_LINE_CLICKED, line);
+ efl_event_callback_legacy_call(widget, ELM_OBJ_CODE_WIDGET_EVENT_LINE_CLICKED, line);
}
static void
// a workaround for when the cursor position would be off the line width
_elm_code_widget_resize(widget, line);
elm_obj_code_widget_cursor_position_set(widget, col + col_width, row);
- efl_event_callback_call(widget, ELM_OBJ_CODE_WIDGET_EVENT_CHANGED_USER, NULL);
+ efl_event_callback_legacy_call(widget, ELM_OBJ_CODE_WIDGET_EVENT_CHANGED_USER, NULL);
if (undo)
{
indent = elm_obj_code_widget_line_text_column_width_to_position(widget, line, leading);
elm_obj_code_widget_cursor_position_set(widget, indent, row + 1);
- efl_event_callback_call(widget, ELM_OBJ_CODE_WIDGET_EVENT_CHANGED_USER, NULL);
+ efl_event_callback_legacy_call(widget, ELM_OBJ_CODE_WIDGET_EVENT_CHANGED_USER, NULL);
change = _elm_code_widget_change_create(width + 1, row, indent - 1, row + 1, "\n", 1, EINA_TRUE);
_elm_code_widget_undo_change_add(widget, change);
elm_obj_code_widget_cursor_position_set(widget, position, row - 1);
}
// TODO construct and pass a change object
- efl_event_callback_call(widget, ELM_OBJ_CODE_WIDGET_EVENT_CHANGED_USER, NULL);
+ efl_event_callback_legacy_call(widget, ELM_OBJ_CODE_WIDGET_EVENT_CHANGED_USER, NULL);
}
void
elm_code_line_text_remove(line, position - char_width, char_width);
elm_obj_code_widget_cursor_position_set(widget, start_col, row);
- efl_event_callback_call(widget, ELM_OBJ_CODE_WIDGET_EVENT_CHANGED_USER, NULL);
+ efl_event_callback_legacy_call(widget, ELM_OBJ_CODE_WIDGET_EVENT_CHANGED_USER, NULL);
change = _elm_code_widget_change_create(start_col, row, end_col, row, text, char_width, EINA_FALSE);
_elm_code_widget_undo_change_add(widget, change);
text = elm_code_widget_text_between_positions_get(widget, start_col, row, end_col, row);
elm_code_line_text_remove(line, position, char_width);
elm_obj_code_widget_cursor_position_set(widget, start_col, row);
- efl_event_callback_call(widget, ELM_OBJ_CODE_WIDGET_EVENT_CHANGED_USER, NULL);
+ efl_event_callback_legacy_call(widget, ELM_OBJ_CODE_WIDGET_EVENT_CHANGED_USER, NULL);
change = _elm_code_widget_change_create(start_col, row, col, row, text, char_width, EINA_FALSE);
_elm_code_widget_undo_change_add(widget, change);
elm_code_widget_undo(widget);
// TODO construct and pass a change object for cut and paste
- efl_event_callback_call(widget, ELM_OBJ_CODE_WIDGET_EVENT_CHANGED_USER, NULL);
+ efl_event_callback_legacy_call(widget, ELM_OBJ_CODE_WIDGET_EVENT_CHANGED_USER, NULL);
}
static void
pd->selection->start_line = line;
pd->selection->start_col = col;
- efl_event_callback_call(widget, ELM_OBJ_CODE_WIDGET_EVENT_SELECTION_CHANGED, widget);
+ efl_event_callback_legacy_call(widget, ELM_OBJ_CODE_WIDGET_EVENT_SELECTION_CHANGED, widget);
elm_obj_code_widget_cursor_position_set(widget, col, line);
}
pd->selection->end_line = line;
pd->selection->end_col = col;
- efl_event_callback_call(widget, ELM_OBJ_CODE_WIDGET_EVENT_SELECTION_CHANGED, widget);
+ efl_event_callback_legacy_call(widget, ELM_OBJ_CODE_WIDGET_EVENT_SELECTION_CHANGED, widget);
}
EAPI Elm_Code_Widget_Selection_Data *
free(pd->selection);
pd->selection = NULL;
- efl_event_callback_call(widget, ELM_OBJ_CODE_WIDGET_EVENT_SELECTION_CLEARED, widget);
+ efl_event_callback_legacy_call(widget, ELM_OBJ_CODE_WIDGET_EVENT_SELECTION_CLEARED, widget);
}
static void
free(pd->selection);
pd->selection = NULL;
- efl_event_callback_call(widget, ELM_OBJ_CODE_WIDGET_EVENT_SELECTION_CLEARED, widget);
+ efl_event_callback_legacy_call(widget, ELM_OBJ_CODE_WIDGET_EVENT_SELECTION_CLEARED, widget);
}
EAPI void
_update_colorbars(sd);
if ((sd->mode == ELM_COLORSELECTOR_ALL) || (sd->mode == ELM_COLORSELECTOR_PICKER))
_color_picker_init(sd);
- efl_event_callback_call(obj, ELM_COLORSELECTOR_EVENT_CHANGED, NULL);
- efl_event_callback_call(obj, ELM_COLORSELECTOR_EVENT_CHANGED_USER, NULL);
+ efl_event_callback_legacy_call(obj, ELM_COLORSELECTOR_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_COLORSELECTOR_EVENT_CHANGED_USER, NULL);
}
static void
if ((sd->mode == ELM_COLORSELECTOR_ALL) || (sd->mode == ELM_COLORSELECTOR_PICKER))
_color_picker_init(sd);
if (!mode_change)
- efl_event_callback_call(obj, ELM_COLORSELECTOR_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_COLORSELECTOR_EVENT_CHANGED, NULL);
}
static void
break;
}
evas_object_data_del(event->object, "_changed");
- efl_event_callback_call(parent, ELM_COLORSELECTOR_EVENT_CHANGED_USER, NULL);
+ efl_event_callback_legacy_call(parent, ELM_COLORSELECTOR_EVENT_CHANGED_USER, NULL);
}
#ifdef HAVE_ELEMENTARY_X
_unselect_selected_item(sd);
_colors_set(o, r, g, b, 0xFF, EINA_FALSE);
- efl_event_callback_call(o, ELM_COLORSELECTOR_EVENT_CHANGED_USER, NULL);
+ efl_event_callback_legacy_call(o, ELM_COLORSELECTOR_EVENT_CHANGED_USER, NULL);
return EINA_TRUE;
}
sd->longpress_timer = NULL;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(item), ELM_COLORSELECTOR_EVENT_COLOR_ITEM_LONGPRESSED, EO_OBJ(item));
return ECORE_CALLBACK_CANCEL;
elm_object_signal_emit(VIEW(item), "elm,state,selected", "elm");
elm_colorselector_color_set(WIDGET(item), item->color->r, item->color->g,
item->color->b, item->color->a);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(item), ELM_COLORSELECTOR_EVENT_COLOR_ITEM_SELECTED, EO_OBJ(item));
eo_temp_item = eina_list_data_get(sd->selected);
elm_colorselector_color_set
(WIDGET(item), item->color->r, item->color->g, item->color->b,
item->color->a);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(item), ELM_COLORSELECTOR_EVENT_COLOR_ITEM_SELECTED, eo_item);
elm_obj_color_item_selected_set(eo_item, EINA_TRUE);
}
_conformant_part_sizing_eval(obj, ELM_CONFORMANT_VIRTUAL_KEYPAD_PART);
if (!sd->clipboard_state)
elm_widget_display_mode_set(obj, EVAS_DISPLAY_MODE_NONE);
- efl_event_callback_call(obj, ELM_CONFORMANT_EVENT_VIRTUALKEYPAD_STATE_OFF, NULL);
+ efl_event_callback_legacy_call(obj, ELM_CONFORMANT_EVENT_VIRTUALKEYPAD_STATE_OFF, NULL);
}
else if (state == ECORE_X_VIRTUAL_KEYBOARD_STATE_ON)
{
_conformant_part_sizing_eval(obj, ELM_CONFORMANT_VIRTUAL_KEYPAD_PART);
elm_widget_display_mode_set(obj, EVAS_DISPLAY_MODE_COMPRESS);
_autoscroll_objects_update(obj);
- efl_event_callback_call(obj, ELM_CONFORMANT_EVENT_VIRTUALKEYPAD_STATE_ON, NULL);
+ efl_event_callback_legacy_call(obj, ELM_CONFORMANT_EVENT_VIRTUALKEYPAD_STATE_ON, NULL);
}
}
evas_object_size_hint_max_set(sd->clipboard, -1, 0);
if (!sd->vkb_state)
elm_widget_display_mode_set(obj, EVAS_DISPLAY_MODE_NONE);
- efl_event_callback_call(obj, ELM_CONFORMANT_EVENT_CLIPBOARD_STATE_OFF, NULL);
+ efl_event_callback_legacy_call(obj, ELM_CONFORMANT_EVENT_CLIPBOARD_STATE_OFF, NULL);
}
else if (state == ECORE_X_ILLUME_CLIPBOARD_STATE_ON)
{
elm_widget_display_mode_set(obj, EVAS_DISPLAY_MODE_COMPRESS);
_autoscroll_objects_update(obj);
- efl_event_callback_call(obj, ELM_CONFORMANT_EVENT_CLIPBOARD_STATE_ON, NULL);
+ efl_event_callback_legacy_call(obj, ELM_CONFORMANT_EVENT_CLIPBOARD_STATE_ON, NULL);
}
}
_apply_field_limits(obj);
if (!_field_cmp(fieldtype, &old_time, &sd->curr_time))
- efl_event_callback_call(obj, ELM_DATETIME_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_DATETIME_EVENT_CHANGED, NULL);
}
_validate_datetime_limits(&sd->max_limit, &sd->curr_time, EINA_TRUE);
_apply_field_limits(obj);
- efl_event_callback_call(obj, ELM_DATETIME_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_DATETIME_EVENT_CHANGED, NULL);
return EINA_TRUE;
}
_apply_field_limits(obj);
if (!_date_cmp(&old_time, &sd->curr_time))
- efl_event_callback_call(obj, ELM_DATETIME_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_DATETIME_EVENT_CHANGED, NULL);
return EINA_TRUE;
}
_apply_field_limits(obj);
if (!_date_cmp(&old_time, &sd->curr_time))
- efl_event_callback_call(obj, ELM_DATETIME_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_DATETIME_EVENT_CHANGED, NULL);
return EINA_TRUE;
}
{
Elm_Dayselector_Item_Data *it = data;
- efl_event_callback_call(WIDGET(it), EFL_UI_CHECK_EVENT_CHANGED, (void *)it->day);
+ efl_event_callback_legacy_call(WIDGET(it), EFL_UI_CHECK_EVENT_CHANGED, (void *)it->day);
}
static Elm_Dayselector_Item_Data *
_selected_item_indicate(sd->selected_item);
if (it->func) it->func((void *)WIDGET_ITEM_DATA_GET(eo_it), WIDGET(it), eo_it);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), EFL_UI_EVENT_SELECTED, eo_it);
}
}
if (it->func) it->func((void *)WIDGET_ITEM_DATA_GET(eo_it), WIDGET(it), eo_it);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), EFL_UI_EVENT_CLICKED, eo_it);
}
if (!it) return;
_item_select(it);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_EVENT_SCROLL_ANIM_STOP, EO_OBJ(it));
}
_scroll_animate_start_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SCROLL_ANIM_START, elm_diskselector_selected_item_get(obj));
}
_scroll_drag_start_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SCROLL_DRAG_START, elm_diskselector_selected_item_get(obj));
}
_scroll_drag_stop_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SCROLL_DRAG_STOP, elm_diskselector_selected_item_get(obj));
}
if (sd->validators == 0) return;
vc.text = edje_object_part_text_get(sd->entry_edje, "elm.text");
- res = efl_event_callback_call(obj, ELM_ENTRY_EVENT_VALIDATE, (void *)&vc);
+ res = efl_event_callback_legacy_call(obj, ELM_ENTRY_EVENT_VALIDATE, (void *)&vc);
buf = eina_strbuf_new();
eina_strbuf_append_printf(buf, "validation,%s,%s", vc.signal, res == EINA_FALSE ? "fail" : "pass");
edje_object_signal_emit(sd->scr_edje, eina_strbuf_string_get(buf), "elm");
evas_event_thaw(evas_object_evas_get(obj));
evas_event_thaw_eval(evas_object_evas_get(obj));
- efl_event_callback_call(obj, ELM_LAYOUT_EVENT_THEME_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_LAYOUT_EVENT_THEME_CHANGED, NULL);
evas_object_unref(obj);
{
ELM_ENTRY_DATA_GET(obj, sd);
- efl_event_callback_call(obj, ELM_ENTRY_EVENT_CURSOR_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_ENTRY_EVENT_CURSOR_CHANGED, NULL);
if (!sd->deferred_recalc_job)
{
if (top && top_is_win && sd->input_panel_enable && !sd->input_panel_show_on_demand &&
!edje_object_part_text_imf_context_get(sd->entry_edje, "elm.text"))
elm_win_keyboard_mode_set(top, ELM_WIN_KEYBOARD_ON);
- efl_event_callback_call(obj, ELM_WIDGET_EVENT_FOCUSED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_WIDGET_EVENT_FOCUSED, NULL);
if (_elm_config->atspi_mode)
elm_interface_atspi_accessible_state_changed_signal_emit(obj, ELM_ATSPI_STATE_FOCUSED, EINA_TRUE);
_return_key_enabled_check(obj);
if (top && top_is_win && sd->input_panel_enable &&
!edje_object_part_text_imf_context_get(sd->entry_edje, "elm.text"))
elm_win_keyboard_mode_set(top, ELM_WIN_KEYBOARD_OFF);
- efl_event_callback_call(obj, ELM_WIDGET_EVENT_UNFOCUSED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_WIDGET_EVENT_UNFOCUSED, NULL);
if (_elm_config->atspi_mode)
elm_interface_atspi_accessible_state_changed_signal_emit(obj, ELM_ATSPI_STATE_FOCUSED, EINA_FALSE);
ELM_ENTRY_DATA_GET(data, sd);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_EVENT_SELECTION_PASTE, NULL);
sd->selection_asked = EINA_TRUE;
{
ELM_ENTRY_DATA_GET(data, sd);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_EVENT_SELECTION_CUT, NULL);
/* Store it */
sd->sel_mode = EINA_FALSE;
{
ELM_ENTRY_DATA_GET(data, sd);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_EVENT_SELECTION_COPY, NULL);
sd->sel_mode = EINA_FALSE;
if (!_elm_config->desktop_entry)
if (sd->anchor_hover.hover) return;
- efl_event_callback_call(obj, ELM_ENTRY_EVENT_CONTEXT_OPEN, NULL);
+ efl_event_callback_legacy_call(obj, ELM_ENTRY_EVENT_CONTEXT_OPEN, NULL);
if ((sd->api) && (sd->api->obj_longpress))
{
sd->long_pressed = EINA_TRUE;
sd->longpress_timer = NULL;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_EVENT_LONGPRESSED, NULL);
return ECORE_CALLBACK_CANCEL;
/* callback - this could call callbacks that delete the
* entry... thus... any access to sd after this could be
* invalid */
- efl_event_callback_call(data, event, NULL);
+ efl_event_callback_legacy_call(data, event, NULL);
}
static void
if (edje_info)
{
memcpy(&info, edje_info, sizeof(info));
- efl_event_callback_call(data, ELM_ENTRY_EVENT_CHANGED_USER, &info);
+ efl_event_callback_legacy_call(data, ELM_ENTRY_EVENT_CHANGED_USER, &info);
}
else
{
- efl_event_callback_call(data, ELM_ENTRY_EVENT_CHANGED_USER, NULL);
+ efl_event_callback_legacy_call(data, ELM_ENTRY_EVENT_CHANGED_USER, NULL);
}
if (_elm_config->atspi_mode)
{
const char *emission EINA_UNUSED,
const char *source EINA_UNUSED)
{
- efl_event_callback_call(data, ELM_ENTRY_EVENT_UNDO_REQUEST, NULL);
+ efl_event_callback_legacy_call(data, ELM_ENTRY_EVENT_UNDO_REQUEST, NULL);
}
static void
const char *emission EINA_UNUSED,
const char *source EINA_UNUSED)
{
- efl_event_callback_call(data, ELM_ENTRY_EVENT_REDO_REQUEST, NULL);
+ efl_event_callback_legacy_call(data, ELM_ENTRY_EVENT_REDO_REQUEST, NULL);
}
static void
{
if (entry != data) elm_entry_select_none(entry);
}
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_EVENT_SELECTION_START, NULL);
elm_object_focus_set(data, EINA_TRUE);
ELM_ENTRY_DATA_GET(data, sd);
sd->have_selection = EINA_TRUE;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_EVENT_SELECTION_CHANGED, NULL);
_selection_store(ELM_SEL_TYPE_PRIMARY, data);
_update_selection_handler(data);
if (!sd->have_selection) return;
sd->have_selection = EINA_FALSE;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_EVENT_SELECTION_CLEARED, NULL);
if (sd->cut_sel)
{
ELM_SEL_TYPE_PRIMARY : ELM_SEL_TYPE_CLIPBOARD;
if (!sd->editable) return;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_EVENT_SELECTION_PASTE, NULL);
top = elm_widget_top_get(data);
const char *emission EINA_UNUSED,
const char *source EINA_UNUSED)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, ELM_ENTRY_EVENT_CURSOR_CHANGED_MANUAL, NULL);
if (_elm_config->atspi_mode)
elm_interface_atspi_accessible_event_emit(ELM_INTERFACE_ATSPI_ACCESSIBLE_MIXIN, data, ELM_INTERFACE_ATSPI_TEXT_EVENT_ACCESS_TEXT_CARET_MOVED, NULL);
_signal_anchor_geoms_do_things_with_lol(sd, &ei);
if (!sd->disabled)
- efl_event_callback_call(data, ELM_ENTRY_EVENT_ANCHOR_DOWN, &ei);
+ efl_event_callback_legacy_call(data, ELM_ENTRY_EVENT_ANCHOR_DOWN, &ei);
}
static void
_signal_anchor_geoms_do_things_with_lol(sd, &ei);
if (!sd->disabled)
- efl_event_callback_call(data, ELM_ENTRY_EVENT_ANCHOR_UP, &ei);
+ efl_event_callback_legacy_call(data, ELM_ENTRY_EVENT_ANCHOR_UP, &ei);
}
static void
ei.hover_right = tmp;
}
- efl_event_callback_call(obj, ELM_ENTRY_EVENT_ANCHOR_HOVER_OPENED, &ei);
+ efl_event_callback_legacy_call(obj, ELM_ENTRY_EVENT_ANCHOR_HOVER_OPENED, &ei);
efl_event_callback_add
(sd->anchor_hover.hover, EFL_UI_EVENT_CLICKED, _anchor_hover_clicked_cb, obj);
if (!sd->disabled)
{
- efl_event_callback_call(data, ELM_ENTRY_EVENT_ANCHOR_CLICKED, &ei);
+ efl_event_callback_legacy_call(data, ELM_ENTRY_EVENT_ANCHOR_CLICKED, &ei);
_entry_hover_anchor_clicked_do(data, &ei);
}
}
_signal_anchor_geoms_do_things_with_lol(sd, &ei);
if (!sd->disabled)
- efl_event_callback_call(data, ELM_ENTRY_EVENT_ANCHOR_IN, &ei);
+ efl_event_callback_legacy_call(data, ELM_ENTRY_EVENT_ANCHOR_IN, &ei);
}
static void
_signal_anchor_geoms_do_things_with_lol(sd, &ei);
if (!sd->disabled)
- efl_event_callback_call(data, ELM_ENTRY_EVENT_ANCHOR_OUT, &ei);
+ efl_event_callback_legacy_call(data, ELM_ENTRY_EVENT_ANCHOR_OUT, &ei);
}
static void
const char *emission EINA_UNUSED,
const char *source EINA_UNUSED)
{
- efl_event_callback_call(data, ELM_ENTRY_EVENT_ACTIVATED, NULL);
+ efl_event_callback_legacy_call(data, ELM_ENTRY_EVENT_ACTIVATED, NULL);
}
static void
const char *emission EINA_UNUSED,
const char *source EINA_UNUSED)
{
- efl_event_callback_call(data, ELM_ENTRY_EVENT_ABORTED, NULL);
+ efl_event_callback_legacy_call(data, ELM_ENTRY_EVENT_ABORTED, NULL);
}
static void
const char *emission EINA_UNUSED,
const char *source EINA_UNUSED)
{
- efl_event_callback_call(data, ELM_ENTRY_EVENT_PRESS, NULL);
+ efl_event_callback_legacy_call(data, ELM_ENTRY_EVENT_PRESS, NULL);
}
static void
const char *emission EINA_UNUSED,
const char *source EINA_UNUSED)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_EVENT_CLICKED, NULL);
}
const char *emission EINA_UNUSED,
const char *source EINA_UNUSED)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_EVENT_CLICKED_DOUBLE, NULL);
}
const char *emission EINA_UNUSED,
const char *source EINA_UNUSED)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_EVENT_CLICKED_TRIPLE, NULL);
}
free(sd->append_text_left);
sd->append_text_left = NULL;
sd->append_text_idler = NULL;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_ENTRY_EVENT_TEXT_SET_DONE, NULL);
return ECORE_CALLBACK_CANCEL;
}
{
if (!i)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_ENTRY_EVENT_MAXLENGTH_REACHED, NULL);
ELM_SAFE_FREE(*text, free);
return;
i++;
}
- efl_event_callback_call(obj, ELM_ENTRY_EVENT_MAXLENGTH_REACHED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_ENTRY_EVENT_MAXLENGTH_REACHED, NULL);
}
EOLIAN static void
}
edje_object_part_text_cursor_pos_set(sd->entry_edje, "elm.text",
EDJE_CURSOR_MAIN, sd->cursor_pos);
- efl_event_callback_call(obj, ELM_ENTRY_EVENT_TEXT_SET_DONE, NULL);
+ efl_event_callback_legacy_call(obj, ELM_ENTRY_EVENT_TEXT_SET_DONE, NULL);
}
}
}
edje_object_signal_emit(sd->entry_edje, "elm,state,select,off", "elm");
}
if (sd->have_selection)
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SELECTION_CLEARED, NULL);
sd->have_selection = EINA_FALSE;
newlen = evas_string_char_len_get(utfstr);
if ((len >= lim->max_char_count) && (newlen > 0))
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(entry, ELM_ENTRY_EVENT_MAXLENGTH_REACHED, NULL);
ELM_SAFE_FREE(*text, free);
free(current);
newlen = strlen(utfstr);
if ((len >= lim->max_byte_count) && (newlen > 0))
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(entry, ELM_ENTRY_EVENT_MAXLENGTH_REACHED, NULL);
ELM_SAFE_FREE(*text, free);
free(current);
}
*insert = 0;
if (rejected)
- efl_event_callback_call(entry, ELM_ENTRY_EVENT_REJECTED, NULL);
+ efl_event_callback_legacy_call(entry, ELM_ENTRY_EVENT_REJECTED, NULL);
}
EOLIAN static void
{
ELM_ENTRY_DATA_GET(obj, sd);
/* here we need to emit the signal that the elm_scroller would have done */
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SCROLL, NULL);
if (sd->have_selection)
if (!elm_widget_disabled_get(obj) &&
!evas_object_freeze_events_get(obj))
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_CLICKED, NULL);
if (sd->editable && sd->input_panel_enable)
edje_object_part_text_input_panel_show(sd->entry_edje, "elm.text");
if (item->func)
item->func((void *)WIDGET_ITEM_DATA_GET(eo_item), WIDGET(item), eo_item);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, EFL_UI_EVENT_SELECTED, eo_item);
}
if (sd->current == sd->items)
{
sd->current = eina_list_last(sd->items);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, ELM_FLIPSELECTOR_EVENT_UNDERFLOWED, NULL);
}
else
if (!sd->current)
{
sd->current = sd->items;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, ELM_FLIPSELECTOR_EVENT_OVERFLOWED, NULL);
}
{
sd->minh = minh;
sd->minw = minw;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->pan_obj, ELM_PAN_EVENT_CHANGED, NULL);
}
{
it->selected = EINA_FALSE;
sd->selected = eina_list_remove(sd->selected, eo_it);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), EFL_UI_EVENT_UNSELECTED, eo_it);
if (_elm_config->atspi_mode)
elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_SELECTED, EINA_FALSE);
if ((it->dragging) && (it->down))
{
ELM_SAFE_FREE(it->long_timer, ecore_timer_del);
- efl_event_callback_call(WIDGET(it), EFL_UI_EVENT_DRAG, eo_it);
+ efl_event_callback_legacy_call(WIDGET(it), EFL_UI_EVENT_DRAG, eo_it);
return;
}
if (dy < 0)
{
if (ady > adx)
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), EFL_UI_EVENT_DRAG_START_UP, eo_it);
else
{
if (dx < 0)
- efl_event_callback_call(WIDGET(it), left_drag, eo_it);
+ efl_event_callback_legacy_call(WIDGET(it), left_drag, eo_it);
}
}
else
{
if (ady > adx)
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), EFL_UI_EVENT_DRAG_START_DOWN, eo_it);
else
{
if (dx < 0)
- efl_event_callback_call(WIDGET(it), left_drag, eo_it);
+ efl_event_callback_legacy_call(WIDGET(it), left_drag, eo_it);
else
- efl_event_callback_call(WIDGET(it), right_drag, eo_it);
+ efl_event_callback_legacy_call(WIDGET(it), right_drag, eo_it);
}
}
}
if (elm_wdg_item_disabled_get(EO_OBJ(it)) || (it->dragging))
return ECORE_CALLBACK_CANCEL;
sd->longpressed = EINA_TRUE;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), EFL_UI_EVENT_LONGPRESSED, EO_OBJ(it));
if (sd->reorder_mode)
return;
edje_object_signal_emit(VIEW(it), "elm,state,selected", "elm");
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), ELM_GENGRID_EVENT_HIGHLIGHTED, EO_OBJ(it));
selectraise = edje_object_data_get(VIEW(it), "selectraise");
return;
edje_object_signal_emit(VIEW(it), "elm,state,unselected", "elm");
- efl_event_callback_call(WIDGET(it), ELM_GENGRID_EVENT_UNHIGHLIGHTED, eo_it);
+ efl_event_callback_legacy_call(WIDGET(it), ELM_GENGRID_EVENT_UNHIGHLIGHTED, eo_it);
evas_object_stack_below(VIEW(it), sd->stack);
it->highlight_cb(it);
if (ev->flags & EVAS_BUTTON_DOUBLE_CLICK)
{
- efl_event_callback_call(WIDGET(it), EFL_UI_EVENT_CLICKED_DOUBLE, EO_OBJ(it));
- efl_event_callback_call(WIDGET(it), ELM_GENGRID_EVENT_ACTIVATED, EO_OBJ(it));
+ efl_event_callback_legacy_call(WIDGET(it), EFL_UI_EVENT_CLICKED_DOUBLE, EO_OBJ(it));
+ efl_event_callback_legacy_call(WIDGET(it), ELM_GENGRID_EVENT_ACTIVATED, EO_OBJ(it));
}
- efl_event_callback_call(WIDGET(it), EFL_UI_EVENT_PRESSED, EO_OBJ(it));
+ efl_event_callback_legacy_call(WIDGET(it), EFL_UI_EVENT_PRESSED, EO_OBJ(it));
ELM_SAFE_FREE(it->long_timer, ecore_timer_del);
if (it->realized)
it->long_timer = ecore_timer_add
evas_event_freeze(evas_object_evas_get(WIDGET(it)));
if (!calc)
- efl_event_callback_call(WIDGET(it), ELM_GENGRID_EVENT_UNREALIZED, EO_OBJ(it));
+ efl_event_callback_legacy_call(WIDGET(it), ELM_GENGRID_EVENT_UNREALIZED, EO_OBJ(it));
ELM_SAFE_FREE(it->long_timer, ecore_timer_del);
_view_clear(VIEW(it), &(it->texts), &(it->contents));
if (dx < 0) dx = -dx;
if (dy < 0) dy = -dy;
if ((dx < 5) && (dy < 5))
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), EFL_UI_EVENT_CLICKED_RIGHT, EO_OBJ(it));
return;
}
sd->on_hold = EINA_TRUE;
else sd->on_hold = EINA_FALSE;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), ELM_GENGRID_EVENT_RELEASED, eo_it);
ELM_SAFE_FREE(it->long_timer, ecore_timer_del);
if (it->dragging)
{
it->dragging = EINA_FALSE;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), EFL_UI_EVENT_DRAG_STOP, eo_it);
dragged = EINA_TRUE;
}
if ((sd->reorder_mode) &&
(sd->reorder_it))
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), ELM_WIDGET_EVENT_MOVED, EO_OBJ(sd->reorder_it));
sd->reorder_it = NULL;
sd->move_effect_enabled = EINA_FALSE;
{
if (it->position_update)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), ELM_GENGRID_EVENT_INDEX_UPDATE, EO_OBJ(it));
it->position_update = EINA_FALSE;
}
if (!was_realized)
{
_elm_gengrid_item_index_update(it);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), ELM_GENGRID_EVENT_REALIZED, EO_OBJ(it));
}
if (it->parent)
if (!was_realized)
{
_elm_gengrid_item_index_update(it);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), ELM_GENGRID_EVENT_REALIZED, EO_OBJ(it));
}
evas_object_move
sd->move_effect_enabled = EINA_FALSE;
}
- efl_event_callback_call
+ efl_event_callback_legacy_call
(psd->wobj, ELM_INTERFACE_SCROLLABLE_EVENT_CHANGED, NULL);
if (sd->focused_item)
_elm_widget_focus_highlight_start(obj);
}
- efl_event_callback_call(obj, ELM_GENGRID_EVENT_ITEM_FOCUSED, eo_it);
+ efl_event_callback_legacy_call(obj, ELM_GENGRID_EVENT_ITEM_FOCUSED, eo_it);
if (_elm_config->atspi_mode)
elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_FOCUSED, EINA_TRUE);
}
}
sd->focused_item = NULL;
- efl_event_callback_call(obj, ELM_GENGRID_EVENT_ITEM_UNFOCUSED, eo_it);
+ efl_event_callback_legacy_call(obj, ELM_GENGRID_EVENT_ITEM_UNFOCUSED, eo_it);
if (_elm_config->atspi_mode)
elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_FOCUSED, EINA_FALSE);
}
_free_reorder_normal_data(sd->reorder.data);
elm_gengrid_item_show(EO_OBJ(sd->reorder.it1),
ELM_GENGRID_ITEM_SCROLLTO_IN);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, ELM_GENGRID_EVENT_ITEM_REORDER_ANIM_STOP, EO_OBJ(sd->reorder.it1));
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, ELM_WIDGET_EVENT_MOVED, EO_OBJ(sd->reorder.it1));
sd->reorder.running = EINA_FALSE;
}
evas_object_raise(VIEW(rnd->corner_item));
}
evas_object_raise(VIEW(it1));
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, ELM_GENGRID_EVENT_ITEM_REORDER_ANIM_START, EO_OBJ(sd->reorder.it1));
//TODO: Add elm config for time
ecore_animator_timeline_add(0.3, _item_move_cb, sd);
}
if (!sd->multi)
- efl_event_callback_call(WIDGET(it), ELM_GENGRID_EVENT_ACTIVATED, eo_it);
+ efl_event_callback_legacy_call(WIDGET(it), ELM_GENGRID_EVENT_ACTIVATED, eo_it);
return EINA_TRUE;
}
_scroll_animate_start_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, EFL_UI_EVENT_SCROLL_ANIM_START, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_EVENT_SCROLL_ANIM_START, NULL);
}
static void
_scroll_animate_stop_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, EFL_UI_EVENT_SCROLL_ANIM_STOP, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_EVENT_SCROLL_ANIM_STOP, NULL);
}
static void
_scroll_drag_start_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, EFL_UI_EVENT_SCROLL_DRAG_START, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_EVENT_SCROLL_DRAG_START, NULL);
}
static void
_scroll_drag_stop_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, EFL_UI_EVENT_SCROLL_DRAG_STOP, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_EVENT_SCROLL_DRAG_STOP, NULL);
}
static void
_edge_left_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_GENGRID_EVENT_EDGE_LEFT, NULL);
+ efl_event_callback_legacy_call(obj, ELM_GENGRID_EVENT_EDGE_LEFT, NULL);
}
static void
_edge_right_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_GENGRID_EVENT_EDGE_RIGHT, NULL);
+ efl_event_callback_legacy_call(obj, ELM_GENGRID_EVENT_EDGE_RIGHT, NULL);
}
static void
_edge_top_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_GENGRID_EVENT_EDGE_TOP, NULL);
+ efl_event_callback_legacy_call(obj, ELM_GENGRID_EVENT_EDGE_TOP, NULL);
}
static void
_edge_bottom_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_GENGRID_EVENT_EDGE_BOTTOM, NULL);
+ efl_event_callback_legacy_call(obj, ELM_GENGRID_EVENT_EDGE_BOTTOM, NULL);
}
static void
_scroll_page_change_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_GENGRID_EVENT_SCROLL_PAGE_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_GENGRID_EVENT_SCROLL_PAGE_CHANGED, NULL);
}
static void
_scroll_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, EFL_UI_EVENT_SCROLL, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_EVENT_SCROLL, NULL);
}
static int
if (sd->pan_obj)
{
evas_object_size_hint_min_set(sd->pan_obj, sd->minw, sd->minh);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->pan_obj, ELM_PAN_EVENT_CHANGED, NULL);
}
elm_interface_scrollable_content_region_show(obj, 0, 0, 0, 0);
if (it->func.func) it->func.func((void *)it->func.data, WIDGET(it), eo_it);
if (it->generation == sd->generation)
{
- efl_event_callback_call(WIDGET(it), EFL_UI_EVENT_SELECTED, eo_it);
+ efl_event_callback_legacy_call(WIDGET(it), EFL_UI_EVENT_SELECTED, eo_it);
if (_elm_config->atspi_mode)
elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_SELECTED, EINA_TRUE);
}
evas_event_freeze(evas_object_evas_get(WIDGET(it)));
if (!calc)
- efl_event_callback_call(WIDGET(it), ELM_GENLIST_EVENT_UNREALIZED, EO_OBJ(it));
+ efl_event_callback_legacy_call(WIDGET(it), ELM_GENLIST_EVENT_UNREALIZED, EO_OBJ(it));
ELM_SAFE_FREE(it->long_timer, ecore_timer_del);
_view_clear(VIEW(it), &(it->texts), NULL);
{
sd->minw = minw;
sd->minh = minh;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->pan_obj, ELM_PAN_EVENT_CHANGED, NULL);
elm_layout_sizing_eval(sd->obj);
if (sd->reorder_it)
sd->move_effect_mode = ELM_GENLIST_TREE_EFFECT_NONE;
sd->move_items = eina_list_free(sd->move_items);
- efl_event_callback_call(sd->pan_obj, ELM_PAN_EVENT_CHANGED, NULL);
- efl_event_callback_call
+ efl_event_callback_legacy_call(sd->pan_obj, ELM_PAN_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call
(sd->obj, ELM_GENLIST_EVENT_TREE_EFFECT_FINISHED, NULL);
evas_object_smart_changed(sd->pan_obj);
{
if (it->position_update || GL_IT(it)->block->position_update)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), ELM_GENLIST_EVENT_INDEX_UPDATE, EO_OBJ(it));
it->position_update = EINA_FALSE;
}
Elm_Gen_Item *it = data;
if (it->item->expanded)
- efl_event_callback_call(WIDGET(it), ELM_GENLIST_EVENT_CONTRACT_REQUEST, EO_OBJ(it));
+ efl_event_callback_legacy_call(WIDGET(it), ELM_GENLIST_EVENT_CONTRACT_REQUEST, EO_OBJ(it));
else
- efl_event_callback_call(WIDGET(it), ELM_GENLIST_EVENT_EXPAND_REQUEST, EO_OBJ(it));
+ efl_event_callback_legacy_call(WIDGET(it), ELM_GENLIST_EVENT_EXPAND_REQUEST, EO_OBJ(it));
}
static void
Elm_Gen_Item *it = data;
if (!it->item->expanded)
- efl_event_callback_call(WIDGET(it), ELM_GENLIST_EVENT_EXPAND_REQUEST, EO_OBJ(it));
+ efl_event_callback_legacy_call(WIDGET(it), ELM_GENLIST_EVENT_EXPAND_REQUEST, EO_OBJ(it));
}
static void
Elm_Gen_Item *it = data;
if (it->item->expanded)
- efl_event_callback_call(WIDGET(it), ELM_GENLIST_EVENT_CONTRACT_REQUEST, EO_OBJ(it));
+ efl_event_callback_legacy_call(WIDGET(it), ELM_GENLIST_EVENT_CONTRACT_REQUEST, EO_OBJ(it));
}
//-- item cache handle routine --//
}
- efl_event_callback_call(WIDGET(it), ELM_GENLIST_EVENT_REALIZED, EO_OBJ(it));
+ efl_event_callback_legacy_call(WIDGET(it), ELM_GENLIST_EVENT_REALIZED, EO_OBJ(it));
}
//Send a signal so that an item changes its style according to its expand depth
evas_event_thaw(evas_object_evas_get(obj));
evas_event_thaw_eval(evas_object_evas_get(obj));
- efl_event_callback_call
+ efl_event_callback_legacy_call
(psd->wobj, ELM_INTERFACE_SCROLLABLE_EVENT_CHANGED, NULL);
}
if (it->realized)
_elm_genlist_item_focus_update(it);
- efl_event_callback_call(obj, ELM_GENLIST_EVENT_ITEM_FOCUSED, eo_it);
+ efl_event_callback_legacy_call(obj, ELM_GENLIST_EVENT_ITEM_FOCUSED, eo_it);
if (_elm_config->atspi_mode)
elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_FOCUSED, EINA_TRUE);
}
}
sd->focused_item = NULL;
- efl_event_callback_call(obj, ELM_GENLIST_EVENT_ITEM_UNFOCUSED, eo_it);
+ efl_event_callback_legacy_call(obj, ELM_GENLIST_EVENT_ITEM_UNFOCUSED, eo_it);
if (_elm_config->atspi_mode)
elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_FOCUSED, EINA_FALSE);
}
if (_item_select(it)) goto deleted;
}
- efl_event_callback_call(WIDGET(it), ELM_GENLIST_EVENT_ACTIVATED, EO_OBJ(it));
+ efl_event_callback_legacy_call(WIDGET(it), ELM_GENLIST_EVENT_ACTIVATED, EO_OBJ(it));
return EINA_TRUE;
edje_object_signal_emit(VIEW(it), SIGNAL_SELECTED, "elm");
if (it->deco_all_view)
edje_object_signal_emit(it->deco_all_view, SIGNAL_SELECTED, "elm");
- efl_event_callback_call(WIDGET(it), ELM_GENLIST_EVENT_HIGHLIGHTED, EO_OBJ(it));
+ efl_event_callback_legacy_call(WIDGET(it), ELM_GENLIST_EVENT_HIGHLIGHTED, EO_OBJ(it));
selectraise = edje_object_data_get(VIEW(it), "selectraise");
if ((selectraise) && (!strcmp(selectraise, "on")))
if (!it->highlighted) return;
edje_object_signal_emit(VIEW(it), SIGNAL_UNSELECTED, "elm");
- efl_event_callback_call(WIDGET(it), ELM_GENLIST_EVENT_UNHIGHLIGHTED, EO_OBJ(it));
+ efl_event_callback_legacy_call(WIDGET(it), ELM_GENLIST_EVENT_UNHIGHLIGHTED, EO_OBJ(it));
if (it->deco_all_view)
edje_object_signal_emit
(it->deco_all_view, SIGNAL_UNSELECTED, "elm");
it->selected = EINA_FALSE;
sd->selected = eina_list_remove(sd->selected, EO_OBJ(it));
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), EFL_UI_EVENT_UNSELECTED, EO_OBJ(it));
if (_elm_config->atspi_mode)
elm_interface_atspi_accessible_state_changed_signal_emit(EO_OBJ(it), ELM_ATSPI_STATE_SELECTED, EINA_FALSE);
sd->movements++;
}
ELM_SAFE_FREE(it->long_timer, ecore_timer_del);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), EFL_UI_EVENT_DRAG, eo_it);
return;
}
if (dy < 0)
{
if (ady > adx)
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), EFL_UI_EVENT_DRAG_START_UP, eo_it);
else
{
if (dx < 0)
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), EFL_UI_EVENT_DRAG_START_LEFT, eo_it);
else
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), EFL_UI_EVENT_DRAG_START_RIGHT, eo_it);
}
}
else
{
if (ady > adx)
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), EFL_UI_EVENT_DRAG_START_DOWN, eo_it);
else
{
if (dx < 0)
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), EFL_UI_EVENT_DRAG_START_LEFT, eo_it);
else
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), EFL_UI_EVENT_DRAG_START_RIGHT, eo_it);
}
}
goto end;
sd->longpressed = EINA_TRUE;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), EFL_UI_EVENT_LONGPRESSED, EO_OBJ(it));
if ((sd->reorder_mode) && !(GL_IT(it)->type & ELM_GENLIST_ITEM_GROUP))
{
sum /= sd->movements;
if (abs(sum - sd->history[0].x) <= 10) return;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), ELM_GENLIST_EVENT_SWIPE, EO_OBJ(it));
}
if ((off_x + off_mx) > (off_y + off_my))
{
if ((sd->cur_x > sd->prev_x) && (sd->cur_mx > sd->prev_mx))
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), ELM_GENLIST_EVENT_MULTI_SWIPE_RIGHT, eo_it);
else if ((sd->cur_x < sd->prev_x) && (sd->cur_mx < sd->prev_mx))
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), ELM_GENLIST_EVENT_MULTI_SWIPE_LEFT, eo_it);
else if (abs(sd->cur_x - sd->cur_mx) >
abs(sd->prev_x - sd->prev_mx))
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), ELM_GENLIST_EVENT_MULTI_PINCH_OUT, eo_it);
else
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), ELM_GENLIST_EVENT_MULTI_PINCH_IN, eo_it);
}
else
{
if ((sd->cur_y > sd->prev_y) && (sd->cur_my > sd->prev_my))
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), ELM_GENLIST_EVENT_MULTI_SWIPE_DOWN, eo_it);
else if ((sd->cur_y < sd->prev_y) && (sd->cur_my < sd->prev_my))
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), ELM_GENLIST_EVENT_MULTI_SWIPE_UP, eo_it);
else if (abs(sd->cur_y - sd->cur_my) >
abs(sd->prev_y - sd->prev_my))
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), ELM_GENLIST_EVENT_MULTI_PINCH_OUT, eo_it);
else
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), ELM_GENLIST_EVENT_MULTI_PINCH_IN, eo_it);
}
}
if (it->dragging)
{
it->dragging = EINA_FALSE;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), EFL_UI_EVENT_DRAG_STOP, EO_OBJ(it));
}
ELM_SAFE_FREE(it->item->swipe_timer, ecore_timer_del);
_item_highlight(it);
if (ev->flags & EVAS_BUTTON_DOUBLE_CLICK)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), EFL_UI_EVENT_CLICKED_DOUBLE, eo_it);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), ELM_GENLIST_EVENT_ACTIVATED, eo_it);
}
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), EFL_UI_EVENT_PRESSED, eo_it);
}
if (after->item->group_item) it->item->group_item = after->item->group_item;
_item_queue(sd, it, NULL);
- efl_event_callback_call(WIDGET(it), ELM_GENLIST_EVENT_MOVED_AFTER, EO_OBJ(it));
+ efl_event_callback_legacy_call(WIDGET(it), ELM_GENLIST_EVENT_MOVED_AFTER, EO_OBJ(it));
}
static void
it->item->group_item = before->item->group_item;
_item_queue(sd, it, NULL);
- efl_event_callback_call(WIDGET(it), ELM_GENLIST_EVENT_MOVED_BEFORE, EO_OBJ(it));
+ efl_event_callback_legacy_call(WIDGET(it), ELM_GENLIST_EVENT_MOVED_BEFORE, EO_OBJ(it));
}
static void
if (dx < 0) dx = -dx;
if (dy < 0) dy = -dy;
if ((dx < 5) && (dy < 5))
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), EFL_UI_EVENT_CLICKED_RIGHT, EO_OBJ(it));
return;
}
ELM_GENLIST_DATA_GET_FROM_ITEM(it, sd);
sd->mouse_down = EINA_FALSE;
- efl_event_callback_call(WIDGET(it), ELM_GENLIST_EVENT_RELEASED, EO_OBJ(it));
+ efl_event_callback_legacy_call(WIDGET(it), ELM_GENLIST_EVENT_RELEASED, EO_OBJ(it));
if (sd->multi_touched)
{
if ((!sd->multi) && (!it->selected) && (it->highlighted))
if (it->dragging)
{
it->dragging = EINA_FALSE;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), EFL_UI_EVENT_DRAG_STOP, EO_OBJ(it));
dragged = 1;
}
_item_move_before(sd->reorder_it, sd->reorder_rel);
else
_item_move_after(sd->reorder_it, sd->reorder_rel);
- efl_event_callback_call(WIDGET(it), ELM_GENLIST_EVENT_MOVED, EO_OBJ(it));
+ efl_event_callback_legacy_call(WIDGET(it), ELM_GENLIST_EVENT_MOVED, EO_OBJ(it));
}
else
{
_scroll_animate_start_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, EFL_UI_EVENT_SCROLL_ANIM_START, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_EVENT_SCROLL_ANIM_START, NULL);
}
static void
_scroll_animate_stop_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, EFL_UI_EVENT_SCROLL_ANIM_STOP, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_EVENT_SCROLL_ANIM_STOP, NULL);
}
static void
_scroll_drag_start_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, EFL_UI_EVENT_SCROLL_DRAG_START, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_EVENT_SCROLL_DRAG_START, NULL);
}
static void
_scroll_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, EFL_UI_EVENT_SCROLL, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_EVENT_SCROLL, NULL);
}
static void
_scroll_drag_stop_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, EFL_UI_EVENT_SCROLL_DRAG_STOP, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_EVENT_SCROLL_DRAG_STOP, NULL);
}
static void
_edge_left_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_GENLIST_EVENT_EDGE_LEFT, NULL);
+ efl_event_callback_legacy_call(obj, ELM_GENLIST_EVENT_EDGE_LEFT, NULL);
}
static void
_edge_right_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_GENLIST_EVENT_EDGE_RIGHT, NULL);
+ efl_event_callback_legacy_call(obj, ELM_GENLIST_EVENT_EDGE_RIGHT, NULL);
}
static void
_edge_top_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_GENLIST_EVENT_EDGE_TOP, NULL);
+ efl_event_callback_legacy_call(obj, ELM_GENLIST_EVENT_EDGE_TOP, NULL);
}
static void
_edge_bottom_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_GENLIST_EVENT_EDGE_BOTTOM, NULL);
+ efl_event_callback_legacy_call(obj, ELM_GENLIST_EVENT_EDGE_BOTTOM, NULL);
}
static void
_vbar_drag_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_GENLIST_EVENT_VBAR_DRAG, NULL);
+ efl_event_callback_legacy_call(obj, ELM_GENLIST_EVENT_VBAR_DRAG, NULL);
}
static void
_vbar_press_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_GENLIST_EVENT_VBAR_PRESS, NULL);
+ efl_event_callback_legacy_call(obj, ELM_GENLIST_EVENT_VBAR_PRESS, NULL);
}
static void
_vbar_unpress_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_GENLIST_EVENT_VBAR_UNPRESS, NULL);
+ efl_event_callback_legacy_call(obj, ELM_GENLIST_EVENT_VBAR_UNPRESS, NULL);
}
static void
_hbar_drag_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_GENLIST_EVENT_HBAR_DRAG, NULL);
+ efl_event_callback_legacy_call(obj, ELM_GENLIST_EVENT_HBAR_DRAG, NULL);
}
static void
_hbar_press_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_GENLIST_EVENT_HBAR_PRESS, NULL);
+ efl_event_callback_legacy_call(obj, ELM_GENLIST_EVENT_HBAR_PRESS, NULL);
}
static void
_hbar_unpress_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_GENLIST_EVENT_HBAR_UNPRESS, NULL);
+ efl_event_callback_legacy_call(obj, ELM_GENLIST_EVENT_HBAR_UNPRESS, NULL);
}
static void
if (sd->pan_obj)
{
evas_object_size_hint_min_set(sd->pan_obj, sd->minw, sd->minh);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->pan_obj, ELM_PAN_EVENT_CHANGED, NULL);
}
elm_layout_sizing_eval(sd->obj);
if (it->func.func) it->func.func((void *)it->func.data, WIDGET(it), eo_it);
// delete item if it's requested deletion in the above callbacks.
if ((it->base)->on_deletion) goto item_deleted;
- efl_event_callback_call(WIDGET(it), EFL_UI_EVENT_SELECTED, eo_it);
+ efl_event_callback_legacy_call(WIDGET(it), EFL_UI_EVENT_SELECTED, eo_it);
if (_elm_config->atspi_mode)
elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_SELECTED, EINA_TRUE);
// delete item if it's requested deletion in the above callbacks.
sd->move_effect_mode = ELM_GENLIST_TREE_EFFECT_EXPAND;
if (it->realized)
edje_object_signal_emit(VIEW(it), SIGNAL_EXPANDED, "elm");
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), ELM_GENLIST_EVENT_EXPANDED, EO_OBJ(it));
sd->auto_scroll_enabled = EINA_TRUE;
if (_elm_config->atspi_mode)
sd->move_effect_mode = ELM_GENLIST_TREE_EFFECT_CONTRACT;
if (it->realized)
edje_object_signal_emit(VIEW(it), SIGNAL_CONTRACTED, "elm");
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), ELM_GENLIST_EVENT_CONTRACTED, EO_OBJ(it));
sd->auto_scroll_enabled = EINA_FALSE;
if (_elm_config->atspi_mode)
if (ok == ECORE_CALLBACK_CANCEL)
{
sd->queue_filter_enterer = NULL;
- efl_event_callback_call(sd->obj, ELM_GENLIST_EVENT_FILTER_DONE, NULL);
+ efl_event_callback_legacy_call(sd->obj, ELM_GENLIST_EVENT_FILTER_DONE, NULL);
}
return ok;
if (!sd->initialized)
{
//TODO:will be optimized
- efl_event_callback_call(obj, ELM_GLVIEW_EVENT_CREATED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_GLVIEW_EVENT_CREATED, NULL);
if (sd->init_func) sd->init_func(obj);
sd->initialized = EINA_TRUE;
}
if (sd->resized)
{
//TODO:will be optimized
- efl_event_callback_call(obj, ELM_GLVIEW_EVENT_RESIZED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_GLVIEW_EVENT_RESIZED, NULL);
if (sd->resize_func) sd->resize_func(obj);
sd->resized = EINA_FALSE;
}
// Call the render function
if (sd->render_func) sd->render_func(obj);
//TODO:will be optimized
- efl_event_callback_call(obj, ELM_GLVIEW_EVENT_RENDER, NULL);
+ efl_event_callback_legacy_call(obj, ELM_GLVIEW_EVENT_RENDER, NULL);
// Depending on the policy return true or false
if (sd->render_policy == ELM_GLVIEW_RENDER_POLICY_ON_DEMAND)
sd->del_func(obj);
}
//TODO:will be optimised
- efl_event_callback_call(obj, ELM_GLVIEW_EVENT_DESTROYED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_GLVIEW_EVENT_DESTROYED, NULL);
efl_event_callback_del(ecore_main_loop_get(),
EFL_LOOP_EVENT_IDLE_ENTER,
sd->smt_sub->obj = sub;
if (sd->smt_sub != prev)
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_HOVER_EVENT_SMART_CHANGED, (void *)sd->smt_sub->swallow);
if (elm_widget_mirrored_get(obj))
if (dismissstr && !strcmp(dismissstr, "on"))
{
evas_object_hide(data);
- efl_event_callback_call(data, ELM_HOVER_EVENT_DISMISSED, NULL);
+ efl_event_callback_legacy_call(data, ELM_HOVER_EVENT_DISMISSED, NULL);
}
}
if (dismissstr && !strcmp(dismissstr, "on"))
{
_hide_signals_emit(data);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_EVENT_CLICKED, NULL);
}
else
{
evas_object_hide(data);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_EVENT_CLICKED, NULL);
- efl_event_callback_call(data, ELM_HOVER_EVENT_DISMISSED, NULL);
+ efl_event_callback_legacy_call(data, ELM_HOVER_EVENT_DISMISSED, NULL);
} // for backward compatibility
}
if (evas_object_visible_get(obj))
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_CLICKED, NULL);
- efl_event_callback_call(obj, ELM_HOVER_EVENT_DISMISSED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_HOVER_EVENT_DISMISSED, NULL);
}
elm_hover_target_set(obj, NULL);
(sd->obj, sd->thumb.thumb.path, sd->thumb.thumb.key);
if (ret)
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, ELM_ICON_EVENT_THUMB_DONE, NULL);
else
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, ELM_ICON_EVENT_THUMB_ERROR, NULL);
return ret;
ERR("could not generate thumbnail for %s (key: %s)",
sd->thumb.file.path, sd->thumb.file.key);
- efl_event_callback_call(sd->obj, ELM_ICON_EVENT_THUMB_ERROR, NULL);
+ efl_event_callback_legacy_call(sd->obj, ELM_ICON_EVENT_THUMB_ERROR, NULL);
_icon_thumb_cleanup(client);
}
if (item)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, ELM_INDEX_EVENT_DELAY_CHANGED, item);
ELM_INDEX_ITEM_DATA_GET(item, it);
_index_priority_change(data, it);
}
if (om_closest)
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_INDEX_EVENT_CHANGED, EO_OBJ(om_closest));
else
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_INDEX_EVENT_CHANGED, EO_OBJ(it));
ecore_timer_del(sd->delay);
sd->delay = ecore_timer_add(sd->delay_change_time,
eo_item = elm_index_selected_item_get(data, sd->level);
if (eo_item)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_EVENT_CLICKED, eo_item);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_EVENT_SELECTED, eo_item);
eo_id_item = eo_item;
ELM_INDEX_ITEM_DATA_GET(eo_id_item, id_item);
sd->level = 1;
snprintf(buf, sizeof(buf), "elm,state,level,%i", sd->level);
elm_layout_signal_emit(data, buf, "elm");
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, ELM_INDEX_EVENT_LEVEL_UP, NULL);
}
}
sd->level = 0;
snprintf(buf, sizeof(buf), "elm,state,level,%i", sd->level);
elm_layout_signal_emit(data, buf, "elm");
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, ELM_INDEX_EVENT_LEVEL_DOWN, NULL);
}
}
edje_object_signal_emit(VIEW(it_active), "elm,state,active", "elm");
edje_object_message_signal_process(VIEW(it_active));
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_INDEX_EVENT_CHANGED, eo_it);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SELECTED, eo_it);
ecore_timer_del(sd->delay);
sd->delay = ecore_timer_add(sd->delay_change_time,
psd->h = h;
_elm_pan_update(psd);
- efl_event_callback_call(psd->self, ELM_PAN_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(psd->self, ELM_PAN_EVENT_CHANGED, NULL);
}
EOLIAN static void
psd->py = y;
_elm_pan_update(psd);
- efl_event_callback_call(psd->self, ELM_PAN_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(psd->self, ELM_PAN_EVENT_CHANGED, NULL);
}
EOLIAN static void
psd->content = NULL;
psd->content_w = psd->content_h = psd->px = psd->py =
psd->prev_cw = psd->prev_ch = psd->delta_posx = psd->delta_posy = 0;
- efl_event_callback_call(psd->self, ELM_PAN_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(psd->self, ELM_PAN_EVENT_CHANGED, NULL);
}
static void
psd->content_h = h;
_elm_pan_update(psd);
}
- efl_event_callback_call(psd->self, ELM_PAN_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(psd->self, ELM_PAN_EVENT_CHANGED, NULL);
}
static void
_elm_pan_update(psd);
end:
- efl_event_callback_call(psd->self, ELM_PAN_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(psd->self, ELM_PAN_EVENT_CHANGED, NULL);
}
EOLIAN static void
if (sd->slide_ellipsis)
elm_obj_label_ellipsis_set(data, EINA_TRUE);
- efl_event_callback_call(data, ELM_LABEL_EVENT_SLIDE_END, NULL);
+ efl_event_callback_legacy_call(data, ELM_LABEL_EVENT_SLIDE_END, NULL);
}
EOLIAN static void
}
if (ret)
- efl_event_callback_call(obj, ELM_LAYOUT_EVENT_THEME_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_LAYOUT_EVENT_THEME_CHANGED, NULL);
if (!_visuals_refresh(obj, sd))
ret = ELM_THEME_APPLY_FAILED;
{
elm_layout_signal_emit(obj, "elm,action,focus", "elm");
evas_object_focus_set(wd->resize_obj, EINA_TRUE);
- efl_event_callback_call(obj, ELM_WIDGET_EVENT_FOCUSED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_WIDGET_EVENT_FOCUSED, NULL);
if (_elm_config->atspi_mode && !elm_widget_child_can_focus_get(obj))
elm_interface_atspi_accessible_state_changed_signal_emit(obj, ELM_ATSPI_STATE_FOCUSED, EINA_TRUE);
}
{
elm_layout_signal_emit(obj, "elm,action,unfocus", "elm");
evas_object_focus_set(wd->resize_obj, EINA_FALSE);
- efl_event_callback_call(obj, ELM_WIDGET_EVENT_UNFOCUSED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_WIDGET_EVENT_UNFOCUSED, NULL);
if (_elm_config->atspi_mode && !elm_widget_child_can_focus_get(obj))
elm_interface_atspi_accessible_state_changed_signal_emit(obj, ELM_ATSPI_STATE_FOCUSED, EINA_FALSE);
}
if (eo_it)
{
ELM_LIST_ITEM_DATA_GET(eo_it, it);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), ELM_LIST_EVENT_ACTIVATED, eo_it);
}
focus_raise = edje_object_data_get(VIEW(it), "focusraise");
if ((focus_raise) && (!strcmp(focus_raise, "on")))
evas_object_raise(VIEW(it));
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), ELM_LIST_EVENT_ITEM_FOCUSED, eo_it);
if (_elm_config->atspi_mode)
elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_FOCUSED, EINA_TRUE);
}
sd->focused_item = NULL;
- efl_event_callback_call(obj, ELM_LIST_EVENT_ITEM_UNFOCUSED, eo_it);
+ efl_event_callback_legacy_call(obj, ELM_LIST_EVENT_ITEM_UNFOCUSED, eo_it);
if (_elm_config->atspi_mode)
elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_FOCUSED, EINA_FALSE);
}
_elm_list_walk(sd);
edje_object_signal_emit(VIEW(it), "elm,state,selected", "elm");
- efl_event_callback_call(obj, ELM_LIST_EVENT_HIGHLIGHTED, EO_OBJ(it));
+ efl_event_callback_legacy_call(obj, ELM_LIST_EVENT_HIGHLIGHTED, EO_OBJ(it));
select_raise = edje_object_data_get(VIEW(it), "selectraise");
if ((select_raise) && (!strcmp(select_raise, "on")))
evas_object_raise(VIEW(it));
_elm_list_walk(sd);
if (it->func) it->func((void *)WIDGET_ITEM_DATA_GET(eo_it), WIDGET(it), eo_it);
- efl_event_callback_call(obj, EFL_UI_EVENT_SELECTED, eo_it);
+ efl_event_callback_legacy_call(obj, EFL_UI_EVENT_SELECTED, eo_it);
if (_elm_config->atspi_mode)
elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_SELECTED, EINA_TRUE);
sd->last_selected_item = eo_it;
_elm_list_walk(sd);
edje_object_signal_emit(VIEW(it), "elm,state,unselected", "elm");
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_LIST_EVENT_UNHIGHLIGHTED, EO_OBJ(it));
stacking = edje_object_data_get(VIEW(it), "stacking");
select_raise = edje_object_data_get(VIEW(it), "selectraise");
sd->selected = eina_list_remove(sd->selected, EO_OBJ(it));
if (!(it->base->disabled ||
(sd->select_mode == ELM_OBJECT_SELECT_MODE_NONE)))
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), EFL_UI_EVENT_UNSELECTED, EO_OBJ(it));
if (_elm_config->atspi_mode)
elm_interface_atspi_accessible_state_changed_signal_emit(EO_OBJ(it), ELM_ATSPI_STATE_SELECTED, EINA_FALSE);
_edge_left_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_LIST_EVENT_EDGE_LEFT, NULL);
+ efl_event_callback_legacy_call(obj, ELM_LIST_EVENT_EDGE_LEFT, NULL);
}
static void
_edge_right_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_LIST_EVENT_EDGE_RIGHT, NULL);
+ efl_event_callback_legacy_call(obj, ELM_LIST_EVENT_EDGE_RIGHT, NULL);
}
static void
_edge_top_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_LIST_EVENT_EDGE_TOP, NULL);
+ efl_event_callback_legacy_call(obj, ELM_LIST_EVENT_EDGE_TOP, NULL);
}
static void
_edge_bottom_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_LIST_EVENT_EDGE_BOTTOM, NULL);
+ efl_event_callback_legacy_call(obj, ELM_LIST_EVENT_EDGE_BOTTOM, NULL);
}
static Eina_Bool
if (it->base->disabled) goto end;
sd->longpressed = EINA_TRUE;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), EFL_UI_EVENT_LONGPRESSED, EO_OBJ(it));
end:
sum /= sd->movements;
if (abs(sum - sd->history[0].x) <= 10) return;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), ELM_LIST_EVENT_SWIPE, EO_OBJ(it));
}
/* Always call the callbacks last - the user may delete our context! */
if (ev->flags & EVAS_BUTTON_DOUBLE_CLICK)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), EFL_UI_EVENT_CLICKED_DOUBLE, EO_OBJ(it));
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(it), ELM_LIST_EVENT_ACTIVATED, EO_OBJ(it));
}
sd->swipe = EINA_FALSE;
if (dx < 0) dx = -dx;
if (dy < 0) dy = -dy;
if ((dx < 5) && (dy < 5))
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_CLICKED_RIGHT, EO_OBJ(it));
return;
}
sd->loaded_timer = NULL;
if (!(sd->download_num) && !(sd->download_idler))
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, ELM_MAP_EVENT_LOADED, NULL);
return ECORE_CALLBACK_CANCEL;
}
_grid_item_update(gi);
gi->wsd->finish_num++;
- efl_event_callback_call
+ efl_event_callback_legacy_call
((gi->wsd)->obj, ELM_MAP_EVENT_TILE_LOADED, NULL);
}
else
ecore_file_remove(gi->file);
gi->file_have = EINA_FALSE;
- efl_event_callback_call
+ efl_event_callback_legacy_call
((gi->wsd)->obj, ELM_MAP_EVENT_TILE_LOADED_FAIL, NULL);
}
sd->download_list = eina_list_remove(sd->download_list, gi);
sd->try_num++;
sd->download_num++;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_MAP_EVENT_TILE_LOAD, NULL);
if (sd->download_num == 1)
edje_object_signal_emit(wd->resize_obj,
_smooth_update(sd);
sd->zoom_timer = NULL;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, EFL_UI_EVENT_ZOOM_STOP, NULL);
return ECORE_CALLBACK_CANCEL;
sd->zoom_timer = NULL;
}
else
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, EFL_UI_EVENT_ZOOM_START, NULL);
if (sd->obj)
sd->zoom_timer = ecore_timer_add(0.25, _zoom_timeout_cb, sd->obj);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, ELM_MAP_EVENT_ZOOM_CHANGE, NULL);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->pan_obj, ELM_PAN_EVENT_CHANGED, NULL);
evas_object_smart_changed(sd->pan_obj);
}
_smooth_update(sd);
sd->scr_timer = NULL;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, EFL_UI_EVENT_SCROLL_DRAG_STOP, NULL);
return ECORE_CALLBACK_CANCEL;
if (sd->scr_timer) ecore_timer_del(sd->scr_timer);
else
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, EFL_UI_EVENT_SCROLL_DRAG_START, NULL);
ELM_SAFE_FREE(sd->long_timer, ecore_timer_del);
sd->scr_timer = ecore_timer_add(0.25, _scr_timeout_cb, obj);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, EFL_UI_EVENT_SCROLL, NULL);
}
{
ELM_MAP_DATA_GET(obj, sd);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, EFL_UI_EVENT_SCROLL_ANIM_START, NULL);
}
{
ELM_MAP_DATA_GET(obj, sd);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, EFL_UI_EVENT_SCROLL_ANIM_STOP, NULL);
}
ELM_MAP_DATA_GET(data, sd);
sd->long_timer = NULL;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, EFL_UI_EVENT_LONGPRESSED, &sd->ev);
return ECORE_CALLBACK_CANCEL;
else sd->on_hold = EINA_FALSE;
if (ev->flags & EVAS_BUTTON_DOUBLE_CLICK)
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, EFL_UI_EVENT_CLICKED_DOUBLE, ev);
else
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, ELM_MAP_EVENT_PRESS, ev);
ecore_timer_del(sd->long_timer);
ELM_SAFE_FREE(sd->long_timer, ecore_timer_del);
if (!sd->on_hold)
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, EFL_UI_EVENT_CLICKED, ev);
sd->on_hold = EINA_FALSE;
}
EINA_SAFETY_ON_NULL_RETURN(data);
- efl_event_callback_call
+ efl_event_callback_legacy_call
((overlay->wsd)->obj, ELM_MAP_EVENT_OVERLAY_CLICKED, overlay);
if (overlay->cb)
overlay->cb(overlay->cb_data, (overlay->wsd)->obj, overlay);
INF("Route request success from (%lf, %lf) to (%lf, %lf)",
route->flon, route->flat, route->tlon, route->tlat);
if (route->cb) route->cb(route->data, sd->obj, route);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, ELM_MAP_EVENT_ROUTE_LOADED, NULL);
}
else
{
ERR("Route request failed: %d", status);
if (route->cb) route->cb(route->data, sd->obj, NULL);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, ELM_MAP_EVENT_ROUTE_LOADED_FAIL, NULL);
}
INF("Name request success address:%s, lon:%lf, lat:%lf",
name->address, name->lon, name->lat);
if (name->cb) name->cb(name->data, sd->obj, name);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, ELM_MAP_EVENT_NAME_LOADED, NULL);
}
else
{
ERR("Name request failed: %d", status);
if (name->cb) name->cb(name->data, sd->obj, NULL);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, ELM_MAP_EVENT_NAME_LOADED_FAIL, NULL);
}
edje_object_signal_emit(wd->resize_obj,
if (name_list->cb)
name_list->cb(name_list->data, wd->obj,
name_list->names);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(wd->obj, ELM_MAP_EVENT_NAME_LOADED, NULL);
}
else
ERR("Name List request failed: %d", status);
if (name_list->cb)
name_list->cb(name_list->data, wd->obj, NULL);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(wd->obj, ELM_MAP_EVENT_NAME_LOADED_FAIL, NULL);
}
free(fname);
sd->names = eina_list_append(sd->names, name);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, ELM_MAP_EVENT_NAME_LOAD, name);
edje_object_signal_emit(wd->resize_obj,
"elm,state,busy,start", "elm");
free(url);
free(fname);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(wd->obj, ELM_MAP_EVENT_NAME_LOAD, name_list->names);
edje_object_signal_emit(wd->resize_obj,
"elm,state,busy,start", "elm");
free(url);
sd->routes = eina_list_append(sd->routes, route);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(sd->obj, ELM_MAP_EVENT_ROUTE_LOAD, route);
edje_object_signal_emit(wd->resize_obj,
"elm,state,busy,start", "elm");
EINA_SAFETY_ON_NULL_RETURN(overlay->wsd);
ELM_MAP_CHECK((overlay->wsd)->obj);
- efl_event_callback_call
+ efl_event_callback_legacy_call
((overlay->wsd)->obj, ELM_MAP_EVENT_OVERLAY_DEL, overlay);
if (overlay->del_cb)
overlay->del_cb
_hover_dismissed_cb(void *data, const Eo_Event *event)
{
_menu_hide(data, event->object, event->info);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_EVENT_CLICKED, NULL);
- efl_event_callback_call(data, ELM_MENU_EVENT_DISMISSED, NULL);
+ efl_event_callback_legacy_call(data, ELM_MENU_EVENT_DISMISSED, NULL);
}
static void
const char *emission EINA_UNUSED,
const char *source EINA_UNUSED)
{
- efl_event_callback_call(data, ELM_NOTIFY_EVENT_BLOCK_CLICKED, NULL);
+ efl_event_callback_legacy_call(data, ELM_NOTIFY_EVENT_BLOCK_CLICKED, NULL);
}
EOLIAN static void
if (!evas_object_visible_get(obj)) goto end;
evas_object_hide(obj);
- efl_event_callback_call(obj, ELM_NOTIFY_EVENT_TIMEOUT, NULL);
+ efl_event_callback_legacy_call(obj, ELM_NOTIFY_EVENT_TIMEOUT, NULL);
end:
return ECORE_CALLBACK_CANCEL;
evas_object_hide(sd->notify);
if (!sd->allow_events) evas_object_hide(sd->block_events);
efl_canvas_group_hide(efl_super(data, MY_CLASS));
- efl_event_callback_call(data, ELM_NOTIFY_EVENT_DISMISSED, NULL);
+ efl_event_callback_legacy_call(data, ELM_NOTIFY_EVENT_DISMISSED, NULL);
}
EOLIAN static void
edje_object_message_signal_process(wd->resize_obj);
}
- efl_event_callback_call(obj, ELM_PANEL_EVENT_TOGGLED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_PANEL_EVENT_TOGGLED, NULL);
}
static Eina_Bool
if (sd->hidden)
{
sd->hidden = EINA_FALSE;
- efl_event_callback_call(obj, ELM_PANEL_EVENT_TOGGLED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_PANEL_EVENT_TOGGLED, NULL);
}
elm_interface_scrollable_single_direction_set
(obj, ELM_SCROLLER_SINGLE_DIRECTION_HARD);
if (!sd->hidden)
{
sd->hidden = EINA_TRUE;
- efl_event_callback_call(obj, ELM_PANEL_EVENT_TOGGLED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_PANEL_EVENT_TOGGLED, NULL);
}
if (horizontal)
}
break;
}
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SCROLL, (void *) &event);
}
const char *emission EINA_UNUSED,
const char *source EINA_UNUSED)
{
- efl_event_callback_call(data, EFL_UI_EVENT_CLICKED, NULL);
+ efl_event_callback_legacy_call(data, EFL_UI_EVENT_CLICKED, NULL);
}
static void
const char *emission EINA_UNUSED,
const char *source EINA_UNUSED)
{
- efl_event_callback_call(data, ELM_PANES_EVENT_PRESS, NULL);
+ efl_event_callback_legacy_call(data, ELM_PANES_EVENT_PRESS, NULL);
}
static void
const char *source EINA_UNUSED)
{
ELM_PANES_DATA_GET(data, sd);
- efl_event_callback_call(data, ELM_PANES_EVENT_UNPRESS, NULL);
+ efl_event_callback_legacy_call(data, ELM_PANES_EVENT_UNPRESS, NULL);
if (sd->double_clicked)
{
- efl_event_callback_call(data, EFL_UI_EVENT_CLICKED_DOUBLE, NULL);
+ efl_event_callback_legacy_call(data, EFL_UI_EVENT_CLICKED_DOUBLE, NULL);
sd->double_clicked = EINA_FALSE;
}
}
ELM_PHOTO_DATA_GET(obj, sd);
elm_object_scroll_freeze_pop(obj);
- efl_event_callback_call(obj, EFL_UI_EVENT_DRAG_END, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_EVENT_DRAG_END, NULL);
sd->drag_started = EINA_FALSE;
}
_drag_done_cb, NULL))
{
elm_object_scroll_freeze_push(obj);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_DRAG_START, NULL);
sd->drag_started = EINA_TRUE;
}
ELM_SAFE_FREE(sd->long_press_timer, ecore_timer_del);
if (!sd->drag_started)
- efl_event_callback_call(data, EFL_UI_EVENT_CLICKED, NULL);
+ efl_event_callback_legacy_call(data, EFL_UI_EVENT_CLICKED, NULL);
}
static void
sd->minw = minw;
sd->minh = minh;
- efl_event_callback_call(sd->pan_obj, ELM_PAN_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(sd->pan_obj, ELM_PAN_EVENT_CHANGED, NULL);
_sizing_eval(obj);
}
sd->calc_job = NULL;
edje_object_signal_emit
(wd->resize_obj,
"elm,state,busy,start", "elm");
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_PHOTOCAM_EVENT_LOAD_DETAIL, NULL);
}
}
edje_object_signal_emit
(wd->resize_obj,
"elm,state,busy,stop", "elm");
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_PHOTOCAM_EVENT_LOADED_DETAIL, NULL);
}
g->grid[tn].want = 0;
edje_object_signal_emit
(wd->resize_obj,
"elm,state,busy,stop", "elm");
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_PHOTOCAM_EVENT_LOAD_DETAIL, NULL);
}
}
edje_object_signal_emit
(wd->resize_obj, "elm,state,busy,stop",
"elm");
- efl_event_callback_call
+ efl_event_callback_legacy_call
(wd->obj, ELM_PHOTOCAM_EVENT_LOADED_DETAIL, NULL);
}
}
}
ecore_job_del(sd->calc_job);
sd->calc_job = ecore_job_add(_calc_job_cb, data);
- efl_event_callback_call(data, ELM_PHOTOCAM_EVENT_LOADED, NULL);
+ efl_event_callback_legacy_call(data, ELM_PHOTOCAM_EVENT_LOADED, NULL);
sd->preload_num--;
if (!sd->preload_num)
{
edje_object_signal_emit
(wd->resize_obj, "elm,state,busy,stop", "elm");
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_PHOTOCAM_EVENT_LOADED_DETAIL, NULL);
}
}
sd->no_smooth--;
if (!sd->no_smooth) _smooth_update(data);
efl_event_callback_del(obj, EFL_EVENT_ANIMATOR_TICK, _zoom_anim_cb, obj);
- efl_event_callback_call(obj, EFL_UI_EVENT_ZOOM_STOP, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_EVENT_ZOOM_STOP, NULL);
}
}
sd->long_timer = NULL;
sd->longpressed = EINA_TRUE;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_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)
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_EVENT_CLICKED_DOUBLE, NULL);
else
- efl_event_callback_call(data, ELM_PHOTOCAM_EVENT_PRESS, NULL);
+ efl_event_callback_legacy_call(data, 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)
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, EFL_UI_EVENT_CLICKED, NULL);
sd->on_hold = EINA_FALSE;
}
_scroll_animate_start_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SCROLL_ANIM_START, NULL);
}
_scroll_animate_stop_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SCROLL_ANIM_STOP, NULL);
}
_scroll_drag_start_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SCROLL_DRAG_START, NULL);
}
_scroll_drag_stop_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SCROLL_DRAG_STOP, NULL);
}
ecore_timer_del(sd->scr_timer);
sd->scr_timer = ecore_timer_add(0.5, _scroll_timeout_cb, obj);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SCROLL, NULL);
}
sd->no_smooth--;
if (!sd->no_smooth) _smooth_update(obj);
_zoom_do(obj, 1.0);
- efl_event_callback_call(obj, EFL_UI_EVENT_ZOOM_STOP, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_EVENT_ZOOM_STOP, NULL);
}
}
sd->main_load_pending = EINA_TRUE;
sd->calc_job = ecore_job_add(_calc_job_cb, obj);
- efl_event_callback_call(obj, ELM_PHOTOCAM_EVENT_LOAD, NULL);
+ efl_event_callback_legacy_call(obj, 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");
- efl_event_callback_call(obj, ELM_PHOTOCAM_EVENT_LOAD_DETAIL, NULL);
+ efl_event_callback_legacy_call(obj, ELM_PHOTOCAM_EVENT_LOAD_DETAIL, NULL);
}
tz = sd->zoom;
free(sd->remote_data);
sd->remote_data = NULL;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_PHOTOCAM_EVENT_DOWNLOAD_ERROR, &err);
}
else
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_PHOTOCAM_EVENT_DOWNLOAD_DONE, NULL);
}
Elm_Photocam_Data *sd = efl_data_scope_get(obj, MY_CLASS);
Elm_Photocam_Error err = { error, EINA_FALSE };
- efl_event_callback_call(obj, ELM_PHOTOCAM_EVENT_DOWNLOAD_ERROR, &err);
+ efl_event_callback_legacy_call(obj, ELM_PHOTOCAM_EVENT_DOWNLOAD_ERROR, &err);
sd->remote = NULL;
}
progress.now = now;
progress.total = total;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_PHOTOCAM_EVENT_DOWNLOAD_PROGRESS, &progress);
}
obj);
if (sd->remote)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_PHOTOCAM_EVENT_DOWNLOAD_START, NULL);
return ret;
}
if (!sd->paused)
{
if (started)
- efl_event_callback_call(obj, EFL_UI_EVENT_ZOOM_START, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_EVENT_ZOOM_START, NULL);
if (!an)
- efl_event_callback_call(obj, EFL_UI_EVENT_ZOOM_STOP, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_EVENT_ZOOM_STOP, NULL);
}
if (zoom_changed)
- efl_event_callback_call(obj, EFL_UI_EVENT_ZOOM_CHANGE, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_EVENT_ZOOM_CHANGE, NULL);
}
EOLIAN static double
{
Evas_Object *plug = ecore_evas_data_get(ee, PLUG_KEY);
EINA_SAFETY_ON_NULL_RETURN(plug);
- efl_event_callback_call(plug, ELM_PLUG_EVENT_IMAGE_DELETED, NULL);
+ efl_event_callback_legacy_call(plug, ELM_PLUG_EVENT_IMAGE_DELETED, NULL);
/* TODO: was a typo. Deprecated, remove in future releases: */
evas_object_smart_callback_call(plug, "image.deleted", NULL);
}
EINA_SAFETY_ON_NULL_RETURN(plug);
ecore_evas_geometry_get(ee, NULL, NULL, &(size.w), &(size.h));
- efl_event_callback_call(plug, ELM_PLUG_EVENT_IMAGE_RESIZED, &size);
+ efl_event_callback_legacy_call(plug, ELM_PLUG_EVENT_IMAGE_RESIZED, &size);
}
EOLIAN static Eina_Bool
if (ev->button != 1) return;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
- efl_event_callback_call(data, EFL_UI_EVENT_CLICKED, NULL);
+ efl_event_callback_legacy_call(data, EFL_UI_EVENT_CLICKED, NULL);
}
EOLIAN static void
{
elm_prefs_data_save(sd->prefs_data, NULL, NULL);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(wd->obj, ELM_PREFS_EVENT_PAGE_SAVED, (char *)sd->root->name);
}
snprintf(buf, sizeof(buf), "%s:%s", it->page->name, it->name);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(wd->obj, ELM_PREFS_EVENT_ITEM_CHANGED, buf);
}
ELM_PREFS_DATA_GET(cb_data, sd);
ELM_WIDGET_DATA_GET_OR_RETURN(cb_data, wd);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(wd->obj, ELM_PREFS_EVENT_PAGE_SAVED, event_info);
sd->dirty = EINA_FALSE;
/* we use the changed cb on ACTION/RESET/SAVE items specially */
if (it->type == ELM_PREFS_TYPE_ACTION)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(wd->obj, ELM_PREFS_EVENT_ACTION, buf);
return;
_elm_prefs_values_get_default(sd->root, EINA_FALSE);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_PREFS_EVENT_PAGE_LOADED, (char *)sd->root->name);
return EINA_TRUE;
sd->values_fetching = EINA_FALSE;
end:
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_PREFS_EVENT_PAGE_CHANGED, (char *)sd->root->name);
return EINA_TRUE;
_val_set(obj);
_units_set(obj);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_PROGRESSBAR_EVENT_CHANGED, NULL);
}
if (_elm_config->access_mode)
_elm_access_say(E_("State: On"));
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_RADIO_EVENT_CHANGED, NULL);
}
_edge_left_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_SCROLLER_EVENT_EDGE_LEFT, NULL);
+ efl_event_callback_legacy_call(obj, ELM_SCROLLER_EVENT_EDGE_LEFT, NULL);
}
static void
_edge_right_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_SCROLLER_EVENT_EDGE_RIGHT, NULL);
+ efl_event_callback_legacy_call(obj, ELM_SCROLLER_EVENT_EDGE_RIGHT, NULL);
}
static void
_edge_top_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_SCROLLER_EVENT_EDGE_TOP, NULL);
+ efl_event_callback_legacy_call(obj, ELM_SCROLLER_EVENT_EDGE_TOP, NULL);
}
static void
_edge_bottom_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_SCROLLER_EVENT_EDGE_BOTTOM, NULL);
+ efl_event_callback_legacy_call(obj, ELM_SCROLLER_EVENT_EDGE_BOTTOM, NULL);
}
static void
_scroll_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SCROLL, NULL);
}
_scroll_left_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_SCROLLER_EVENT_SCROLL_LEFT, NULL);
+ efl_event_callback_legacy_call(obj, ELM_SCROLLER_EVENT_SCROLL_LEFT, NULL);
}
static void
_scroll_right_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_SCROLLER_EVENT_SCROLL_RIGHT, NULL);
+ efl_event_callback_legacy_call(obj, ELM_SCROLLER_EVENT_SCROLL_RIGHT, NULL);
}
static void
_scroll_up_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_SCROLLER_EVENT_SCROLL_UP, NULL);
+ efl_event_callback_legacy_call(obj, ELM_SCROLLER_EVENT_SCROLL_UP, NULL);
}
static void
_scroll_down_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_SCROLLER_EVENT_SCROLL_DOWN, NULL);
+ efl_event_callback_legacy_call(obj, ELM_SCROLLER_EVENT_SCROLL_DOWN, NULL);
}
static void
_scroll_anim_start_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SCROLL_ANIM_START, NULL);
}
_scroll_anim_stop_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SCROLL_ANIM_STOP, NULL);
}
_scroll_drag_start_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SCROLL_DRAG_START, NULL);
}
_scroll_drag_stop_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, EFL_UI_EVENT_SCROLL_DRAG_STOP, NULL);
}
_vbar_drag_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_SCROLLER_EVENT_VBAR_DRAG, NULL);
+ efl_event_callback_legacy_call(obj, ELM_SCROLLER_EVENT_VBAR_DRAG, NULL);
}
static void
_vbar_press_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_SCROLLER_EVENT_VBAR_PRESS, NULL);
+ efl_event_callback_legacy_call(obj, ELM_SCROLLER_EVENT_VBAR_PRESS, NULL);
}
static void
_vbar_unpress_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_SCROLLER_EVENT_VBAR_UNPRESS, NULL);
+ efl_event_callback_legacy_call(obj, ELM_SCROLLER_EVENT_VBAR_UNPRESS, NULL);
}
static void
_hbar_drag_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_SCROLLER_EVENT_HBAR_DRAG, NULL);
+ efl_event_callback_legacy_call(obj, ELM_SCROLLER_EVENT_HBAR_DRAG, NULL);
}
static void
_hbar_press_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_SCROLLER_EVENT_HBAR_PRESS, NULL);
+ efl_event_callback_legacy_call(obj, ELM_SCROLLER_EVENT_HBAR_PRESS, NULL);
}
static void
_hbar_unpress_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, ELM_SCROLLER_EVENT_HBAR_UNPRESS, NULL);
+ efl_event_callback_legacy_call(obj, ELM_SCROLLER_EVENT_HBAR_UNPRESS, NULL);
}
static void
_page_change_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_SCROLLER_EVENT_SCROLL_PAGE_CHANGED, NULL);
}
edje_object_signal_emit(VIEW(it), "elm,state,segment,selected", "elm");
sd->selected_item = it;
- efl_event_callback_call(sd->obj, ELM_SEGMENT_CONTROL_EVENT_CHANGED, EO_OBJ(it));
+ efl_event_callback_legacy_call(sd->obj, ELM_SEGMENT_CONTROL_EVENT_CHANGED, EO_OBJ(it));
}
static void
ELM_SLIDER_DATA_GET(data, sd);
sd->delay = NULL;
- efl_event_callback_call(data, ELM_SLIDER_EVENT_DELAY_CHANGED, NULL);
+ efl_event_callback_legacy_call(data, ELM_SLIDER_EVENT_DELAY_CHANGED, NULL);
if (_elm_config->atspi_mode)
elm_interface_atspi_accessible_value_changed_signal_emit(data);
sd->range_from = val;
if (user_event)
{
- efl_event_callback_call(obj, ELM_SLIDER_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_SLIDER_EVENT_CHANGED, NULL);
ecore_timer_del(sd->delay);
sd->delay = ecore_timer_add(SLIDER_DELAY_CHANGED_INTERVAL, _delay_change, obj);
}
sd->range_to = val2;
if (user_event)
{
- efl_event_callback_call(obj, ELM_SLIDER_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_SLIDER_EVENT_CHANGED, NULL);
ecore_timer_del(sd->delay);
sd->delay = ecore_timer_add(SLIDER_DELAY_CHANGED_INTERVAL, _delay_change, obj);
}
if (!elm_widget_focus_get(data))
elm_object_focus_set(data, EINA_TRUE);
_slider_update(data, EINA_TRUE);
- efl_event_callback_call(data, ELM_SLIDER_EVENT_SLIDER_DRAG_START, NULL);
+ efl_event_callback_legacy_call(data, ELM_SLIDER_EVENT_SLIDER_DRAG_START, NULL);
elm_widget_scroll_freeze_push(data);
}
const char *source EINA_UNUSED)
{
_slider_update(data, EINA_TRUE);
- efl_event_callback_call(data, ELM_SLIDER_EVENT_SLIDER_DRAG_STOP, NULL);
+ efl_event_callback_legacy_call(data, ELM_SLIDER_EVENT_SLIDER_DRAG_STOP, NULL);
elm_widget_scroll_freeze_pop(data);
}
if (!elm_widget_focus_get(data))
elm_object_focus_set(data, EINA_TRUE);
_slider_update(data, EINA_TRUE);
- efl_event_callback_call(data, ELM_SLIDER_EVENT_SLIDER_DRAG_START, NULL);
+ efl_event_callback_legacy_call(data, ELM_SLIDER_EVENT_SLIDER_DRAG_START, NULL);
elm_layout_signal_emit(data, "elm,state,indicator,show", "elm");
}
{
if (sd->spacer_down) sd->spacer_down = EINA_FALSE;
_slider_update(data, EINA_TRUE);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, ELM_SLIDER_EVENT_SLIDER_DRAG_STOP, NULL);
if (sd->frozen)
{
if (sd->spacer_down) sd->spacer_down = EINA_FALSE;
_slider_update(data, EINA_TRUE);
- efl_event_callback_call(data, ELM_SLIDER_EVENT_SLIDER_DRAG_STOP, NULL);
+ efl_event_callback_legacy_call(data, ELM_SLIDER_EVENT_SLIDER_DRAG_STOP, NULL);
if (sd->frozen)
{
if (sd->val_min > value) return EINA_FALSE;
if (sd->val_max < value) return EINA_FALSE;
- efl_event_callback_call(obj, ELM_SLIDER_EVENT_SLIDER_DRAG_START, NULL);
+ efl_event_callback_legacy_call(obj, ELM_SLIDER_EVENT_SLIDER_DRAG_START, NULL);
sd->val = value;
_visuals_refresh(obj);
sd->val = oldval;
_slider_update(obj, EINA_TRUE);
- efl_event_callback_call(obj, ELM_SLIDER_EVENT_SLIDER_DRAG_STOP, NULL);
+ efl_event_callback_legacy_call(obj, ELM_SLIDER_EVENT_SLIDER_DRAG_STOP, NULL);
return EINA_TRUE;
}
elm_layout_signal_emit(data, "anim,end", "slideshow");
if (emission != NULL)
- efl_event_callback_call
+ efl_event_callback_legacy_call
(data, ELM_SLIDESHOW_EVENT_TRANSITION_END, EO_OBJ(sd->current));
}
sd->previous = sd->current;
sd->current = next;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(WIDGET(item), ELM_SLIDESHOW_EVENT_CHANGED, EO_OBJ(sd->current));
}
sd->previous = sd->current;
sd->current = next;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_SLIDESHOW_EVENT_CHANGED, EO_OBJ(sd->current));
}
sd->previous = sd->current;
sd->current = prev;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_SLIDESHOW_EVENT_CHANGED, EO_OBJ(sd->current));
}
ELM_SPINNER_DATA_GET(data, sd);
sd->delay_change_timer = NULL;
- efl_event_callback_call(data, ELM_SPINNER_EVENT_DELAY_CHANGED, NULL);
+ efl_event_callback_legacy_call(data, ELM_SPINNER_EVENT_DELAY_CHANGED, NULL);
return ECORE_CALLBACK_CANCEL;
}
if (new_val == sd->val) return EINA_FALSE;
sd->val = new_val;
- efl_event_callback_call(obj, ELM_SPINNER_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_SPINNER_EVENT_CHANGED, NULL);
elm_interface_atspi_accessible_value_changed_signal_emit(obj);
ecore_timer_del(sd->delay_change_timer);
sd->delay_change_timer = ecore_timer_add(ELM_SPINNER_DELAY_CHANGE_TIME,
sd->drag_prev_pos = 0;
sd->drag_val_step = 1;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_SPINNER_EVENT_SPINNER_DRAG_START, NULL);
}
edje_object_part_drag_value_set
(wd->resize_obj, "elm.dragable.slider", 0.0, 0.0);
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_SPINNER_EVENT_SPINNER_DRAG_STOP, NULL);
}
if (((*end != '\0') && (!isspace(*end))) || (fabs(val - sd->val) < DBL_EPSILON)) return;
elm_spinner_value_set(obj, val);
- efl_event_callback_call(obj, ELM_SPINNER_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_SPINNER_EVENT_CHANGED, NULL);
ecore_timer_del(sd->delay_change_timer);
sd->delay_change_timer = ecore_timer_add(ELM_SPINNER_DELAY_CHANGE_TIME,
_delay_change_timer_cb, obj);
else sd->on_hold = EINA_FALSE;
if (ev->flags & EVAS_BUTTON_DOUBLE_CLICK)
- efl_event_callback_call(obj, EFL_UI_EVENT_CLICKED_DOUBLE, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_EVENT_CLICKED_DOUBLE, NULL);
else
- efl_event_callback_call(obj, ELM_THUMB_EVENT_PRESS, NULL);
+ efl_event_callback_legacy_call(obj, ELM_THUMB_EVENT_PRESS, NULL);
}
static void
else sd->on_hold = EINA_FALSE;
if (!sd->on_hold)
- efl_event_callback_call(obj, EFL_UI_EVENT_CLICKED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_EVENT_CLICKED, NULL);
sd->on_hold = EINA_FALSE;
}
eina_stringshare_replace(&(sd->thumb.key), thumb_key);
edje_object_signal_emit(wd->resize_obj, EDJE_SIGNAL_PULSE_STOP, "elm");
edje_object_signal_emit(wd->resize_obj, EDJE_SIGNAL_GENERATE_STOP, "elm");
- efl_event_callback_call(sd->obj, ELM_THUMB_EVENT_GENERATE_STOP, NULL);
+ efl_event_callback_legacy_call(sd->obj, ELM_THUMB_EVENT_GENERATE_STOP, NULL);
}
static void
wd = efl_data_scope_get(sd->obj, ELM_WIDGET_CLASS);
edje_object_signal_emit(wd->resize_obj, EDJE_SIGNAL_LOAD_ERROR, "elm");
- efl_event_callback_call(sd->obj, ELM_THUMB_EVENT_LOAD_ERROR, NULL);
+ efl_event_callback_legacy_call(sd->obj, ELM_THUMB_EVENT_LOAD_ERROR, NULL);
}
return;
err:
edje_object_signal_emit(wd->resize_obj, EDJE_SIGNAL_LOAD_ERROR, "elm");
- efl_event_callback_call(sd->obj, ELM_THUMB_EVENT_LOAD_ERROR, NULL);
+ efl_event_callback_legacy_call(sd->obj, ELM_THUMB_EVENT_LOAD_ERROR, NULL);
}
static void
ELM_WIDGET_DATA_GET_OR_RETURN(data, wd);
edje_object_signal_emit(wd->resize_obj, EDJE_SIGNAL_GENERATE_ERROR, "elm");
edje_object_signal_emit(wd->resize_obj, EDJE_SIGNAL_PULSE_STOP, "elm");
- efl_event_callback_call(sd->obj, ELM_THUMB_EVENT_GENERATE_ERROR, NULL);
+ efl_event_callback_legacy_call(sd->obj, ELM_THUMB_EVENT_GENERATE_ERROR, NULL);
}
static void
ELM_WIDGET_DATA_GET_OR_RETURN(sd->obj, wd);
edje_object_signal_emit(wd->resize_obj, EDJE_SIGNAL_PULSE_START, "elm");
edje_object_signal_emit(wd->resize_obj, EDJE_SIGNAL_GENERATE_START, "elm");
- efl_event_callback_call(sd->obj, ELM_THUMB_EVENT_GENERATE_START, NULL);
+ efl_event_callback_legacy_call(sd->obj, ELM_THUMB_EVENT_GENERATE_START, NULL);
pending_request++;
ethumb_client_file_set(_elm_ethumb_client, sd->file, sd->key);
sd->thumb.request = NULL;
edje_object_signal_emit(wd->resize_obj, EDJE_SIGNAL_GENERATE_STOP, "elm");
- efl_event_callback_call(sd->obj, ELM_THUMB_EVENT_GENERATE_STOP, NULL);
+ efl_event_callback_legacy_call(sd->obj, ELM_THUMB_EVENT_GENERATE_STOP, NULL);
}
if (sd->thumb.retry)
elm_layout_signal_emit(VIEW(item), "elm,state,unselected", "elm");
if (item->icon)
elm_widget_signal_emit(item->icon, "elm,state,unselected", "elm");
- efl_event_callback_call(WIDGET(item), EFL_UI_EVENT_UNSELECTED, EO_OBJ(item));
+ efl_event_callback_legacy_call(WIDGET(item), EFL_UI_EVENT_UNSELECTED, EO_OBJ(item));
if (_elm_config->atspi_mode)
elm_interface_atspi_accessible_state_changed_signal_emit(EO_OBJ(item), ELM_ATSPI_STATE_SELECTED, EINA_FALSE);
}
focus_raise = elm_layout_data_get(VIEW(it), "focusraise");
if ((focus_raise) && (!strcmp(focus_raise, "on")))
evas_object_raise(VIEW(it));
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_TOOLBAR_EVENT_ITEM_FOCUSED, EO_OBJ(it));
if (_elm_config->atspi_mode)
elm_interface_atspi_accessible_state_changed_signal_emit(EO_OBJ(it), ELM_ATSPI_STATE_FOCUSED, EINA_TRUE);
elm_layout_signal_emit
(VIEW(it), "elm,highlight,off", "elm");
sd->focused_item = NULL;
- efl_event_callback_call
+ efl_event_callback_legacy_call
(obj, ELM_TOOLBAR_EVENT_ITEM_UNFOCUSED, eo_it);
if (_elm_config->atspi_mode)
elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_FOCUSED, EINA_TRUE);
{
if (it->func) it->func((void *)(WIDGET_ITEM_DATA_GET(EO_OBJ(it))), WIDGET(it), EO_OBJ(it));
}
- efl_event_callback_call(obj, EFL_UI_EVENT_SELECTED, EO_OBJ(it));
+ efl_event_callback_legacy_call(obj, EFL_UI_EVENT_SELECTED, EO_OBJ(it));
if (_elm_config->atspi_mode)
elm_interface_atspi_accessible_state_changed_signal_emit(EO_OBJ(it), ELM_ATSPI_STATE_SELECTED, EINA_TRUE);
}
if (button == 1)
{
/* regular left click event */
- efl_event_callback_call(WIDGET(it), EFL_UI_EVENT_CLICKED, EO_OBJ(it));
+ efl_event_callback_legacy_call(WIDGET(it), EFL_UI_EVENT_CLICKED, EO_OBJ(it));
return;
}
snprintf(buf, sizeof(buf), "elm,action,click,%d", button);
if (sd->reorder_mode)
_item_reorder_start(it);
- efl_event_callback_call(WIDGET(it), EFL_UI_EVENT_LONGPRESSED, EO_OBJ(it));
+ efl_event_callback_legacy_call(WIDGET(it), EFL_UI_EVENT_LONGPRESSED, EO_OBJ(it));
return ECORE_CALLBACK_CANCEL;
}
if (ev->button != 1) return;
if (ev->flags & EVAS_BUTTON_DOUBLE_CLICK)
- efl_event_callback_call(WIDGET(it), EFL_UI_EVENT_CLICKED_DOUBLE, EO_OBJ(it));
+ efl_event_callback_legacy_call(WIDGET(it), EFL_UI_EVENT_CLICKED_DOUBLE, EO_OBJ(it));
sd->mouse_down = EINA_TRUE;
sd->long_press = EINA_FALSE;
if (sd->long_timer)
_scroll_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, EFL_UI_EVENT_SCROLL, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_EVENT_SCROLL, NULL);
}
static void
_scroll_anim_start_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, EFL_UI_EVENT_SCROLL_ANIM_START, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_EVENT_SCROLL_ANIM_START, NULL);
}
static void
_scroll_anim_stop_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, EFL_UI_EVENT_SCROLL_ANIM_STOP, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_EVENT_SCROLL_ANIM_STOP, NULL);
}
static void
ELM_TOOLBAR_DATA_GET(obj, sd);
ELM_SAFE_FREE(sd->long_timer, ecore_timer_del);
- efl_event_callback_call(obj, EFL_UI_EVENT_SCROLL_DRAG_START, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_EVENT_SCROLL_DRAG_START, NULL);
}
static void
_scroll_drag_stop_cb(Evas_Object *obj,
void *data EINA_UNUSED)
{
- efl_event_callback_call(obj, EFL_UI_EVENT_SCROLL_DRAG_STOP, NULL);
+ efl_event_callback_legacy_call(obj, EFL_UI_EVENT_SCROLL_DRAG_STOP, NULL);
}
static void
EINA_SAFETY_ON_NULL_RETURN(idata);
- efl_event_callback_call(idata->priv->view, ELM_VIEW_LIST_EVENT_MODEL_SELECTED, idata->model);
+ efl_event_callback_legacy_call(idata->priv->view, ELM_VIEW_LIST_EVENT_MODEL_SELECTED, idata->model);
}
static void
}
elm_obj_widget_access(obj, is_access);
- efl_event_callback_call(obj, ELM_WIDGET_EVENT_ACCESS_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_WIDGET_EVENT_ACCESS_CHANGED, NULL);
return ret;
}
sd->on_translate = EINA_FALSE;
}
#endif
- efl_event_callback_call(obj, ELM_WIDGET_EVENT_LANGUAGE_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, ELM_WIDGET_EVENT_LANGUAGE_CHANGED, NULL);
return EINA_TRUE;
}
if (!sd->resize_obj)
evas_object_focus_set(obj, focused);
- efl_event_callback_call(obj, desc, NULL);
+ efl_event_callback_legacy_call(obj, desc, NULL);
if (_elm_config->atspi_mode && !elm_widget_child_can_focus_get(obj))
elm_interface_atspi_accessible_state_changed_signal_emit(obj, ELM_ATSPI_STATE_FOCUSED, focused);
Emotion_Object_Data *sd = data;
emotion_object_position_set(evas_object_smart_parent_get(sd->obj), xattr_double);
- efl_event_callback_call(evas_object_smart_parent_get(sd->obj), EMOTION_OBJECT_EVENT_POSITION_LOAD_SUCCEED, NULL);
+ efl_event_callback_legacy_call(evas_object_smart_parent_get(sd->obj), EMOTION_OBJECT_EVENT_POSITION_LOAD_SUCCEED, NULL);
_eio_load_xattr_cleanup(sd, handler);
}
{
Emotion_Object_Data *sd = data;
- efl_event_callback_call(evas_object_smart_parent_get(sd->obj), EMOTION_OBJECT_EVENT_POSITION_LOAD_FAILED, NULL);
+ efl_event_callback_legacy_call(evas_object_smart_parent_get(sd->obj), EMOTION_OBJECT_EVENT_POSITION_LOAD_FAILED, NULL);
_eio_load_xattr_cleanup(sd, handler);
}
#endif
if (eina_xattr_double_get(tmp, "user.e.time_seek", &xattr))
{
emotion_object_position_set(obj, xattr);
- efl_event_callback_call(obj, EMOTION_OBJECT_EVENT_POSITION_LOAD_SUCCEED, NULL);
+ efl_event_callback_legacy_call(obj, EMOTION_OBJECT_EVENT_POSITION_LOAD_SUCCEED, NULL);
}
else
- efl_event_callback_call(obj, EMOTION_OBJECT_EVENT_POSITION_LOAD_FAILED, NULL);
+ efl_event_callback_legacy_call(obj, EMOTION_OBJECT_EVENT_POSITION_LOAD_FAILED, NULL);
#endif
}
{
Emotion_Object_Data *sd = data;
- efl_event_callback_call(sd->obj, EMOTION_OBJECT_EVENT_POSITION_SAVE_SUCCEED, NULL);
+ efl_event_callback_legacy_call(sd->obj, EMOTION_OBJECT_EVENT_POSITION_SAVE_SUCCEED, NULL);
_eio_save_xattr_cleanup(sd, handler);
}
{
Emotion_Object_Data *sd = data;
- efl_event_callback_call(sd->obj, EMOTION_OBJECT_EVENT_POSITION_SAVE_FAILED, NULL);
+ efl_event_callback_legacy_call(sd->obj, EMOTION_OBJECT_EVENT_POSITION_SAVE_FAILED, NULL);
_eio_save_xattr_cleanup(sd, handler);
}
#endif
sd);
#else
if (eina_xattr_double_set(tmp, "user.e.time_seek", emotion_object_position_get(obj), 0))
- efl_event_callback_call(obj, EMOTION_OBJECT_EVENT_POSITION_SAVE_SUCCEED, NULL);
+ efl_event_callback_legacy_call(obj, EMOTION_OBJECT_EVENT_POSITION_SAVE_SUCCEED, NULL);
else
- efl_event_callback_call(obj, EMOTION_OBJECT_EVENT_POSITION_SAVE_FAILED, NULL);
+ efl_event_callback_legacy_call(obj, EMOTION_OBJECT_EVENT_POSITION_SAVE_FAILED, NULL);
#endif
}
_emotion_video_pos_update(obj,
emotion_engine_instance_pos_get(sd->engine_instance),
emotion_engine_instance_len_get(sd->engine_instance));
- efl_event_callback_call(obj, EMOTION_OBJECT_EVENT_FRAME_DECODE, NULL);
+ efl_event_callback_legacy_call(obj, EMOTION_OBJECT_EVENT_FRAME_DECODE, NULL);
return EINA_FALSE;
}
if (len != sd->len) nlen = 1;
sd->pos = pos;
sd->len = len;
- if (npos) efl_event_callback_call(obj, EMOTION_OBJECT_EVENT_POSITION_UPDATE, NULL);
- if (nlen) efl_event_callback_call(obj, EMOTION_OBJECT_EVENT_LENGTH_CHANGE, NULL);
+ if (npos) efl_event_callback_legacy_call(obj, EMOTION_OBJECT_EVENT_POSITION_UPDATE, NULL);
+ if (nlen) efl_event_callback_legacy_call(obj, EMOTION_OBJECT_EVENT_LENGTH_CHANGE, NULL);
}
EAPI void
if (changed)
{
evas_object_size_hint_request_set(obj, w, h);
- efl_event_callback_call(obj, EMOTION_OBJECT_EVENT_FRAME_RESIZE, NULL);
+ efl_event_callback_legacy_call(obj, EMOTION_OBJECT_EVENT_FRAME_RESIZE, NULL);
evas_object_geometry_get(obj, NULL, NULL, &w, &h);
_emotion_object_aspect_border_apply(obj, sd, w, h);
}
if (sd->play)
{
sd->play = 0;
- efl_event_callback_call(obj, EMOTION_OBJECT_EVENT_DECODE_STOP, NULL);
+ efl_event_callback_legacy_call(obj, EMOTION_OBJECT_EVENT_DECODE_STOP, NULL);
}
}
emotion_object_position_set(obj, sd->remember_jump);
if (sd->remember_play != sd->play)
emotion_object_play_set(obj, sd->remember_play);
- efl_event_callback_call(obj, EMOTION_OBJECT_EVENT_OPEN_DONE, NULL);
+ efl_event_callback_legacy_call(obj, EMOTION_OBJECT_EVENT_OPEN_DONE, NULL);
}
EAPI void
_emotion_playback_started(Evas_Object *obj)
{
- efl_event_callback_call(obj, EMOTION_OBJECT_EVENT_PLAYBACK_STARTED, NULL);
+ efl_event_callback_legacy_call(obj, EMOTION_OBJECT_EVENT_PLAYBACK_STARTED, NULL);
}
EAPI void
_emotion_playback_finished(Evas_Object *obj)
{
- efl_event_callback_call(obj, EMOTION_OBJECT_EVENT_PLAYBACK_FINISHED, NULL);
+ efl_event_callback_legacy_call(obj, EMOTION_OBJECT_EVENT_PLAYBACK_FINISHED, NULL);
}
EAPI void
_emotion_audio_level_change(Evas_Object *obj)
{
- efl_event_callback_call(obj, EMOTION_OBJECT_EVENT_AUDIO_LEVEL_CHANGE, NULL);
+ efl_event_callback_legacy_call(obj, EMOTION_OBJECT_EVENT_AUDIO_LEVEL_CHANGE, NULL);
}
EAPI void
Emotion_Object_Data *sd;
E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME);
- efl_event_callback_call(obj, EMOTION_OBJECT_EVENT_CHANNELS_CHANGE, NULL);
+ efl_event_callback_legacy_call(obj, EMOTION_OBJECT_EVENT_CHANNELS_CHANGE, NULL);
}
EAPI void
E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME);
eina_stringshare_replace(&sd->title, title);
- efl_event_callback_call(obj, EMOTION_OBJECT_EVENT_TITLE_CHANGE, NULL);
+ efl_event_callback_legacy_call(obj, EMOTION_OBJECT_EVENT_TITLE_CHANGE, NULL);
}
E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME);
eina_stringshare_replace(&sd->progress.info, info);
sd->progress.stat = st;
- efl_event_callback_call(obj, EMOTION_OBJECT_EVENT_PROGRESS_CHANGE, NULL);
+ efl_event_callback_legacy_call(obj, EMOTION_OBJECT_EVENT_PROGRESS_CHANGE, NULL);
}
EAPI void
E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME);
eina_stringshare_replace(&sd->ref.file, file);
sd->ref.num = num;
- efl_event_callback_call(obj, EMOTION_OBJECT_EVENT_REF_CHANGE, NULL);
+ efl_event_callback_legacy_call(obj, EMOTION_OBJECT_EVENT_REF_CHANGE, NULL);
}
EAPI void
E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME);
sd->spu.button_num = num;
- efl_event_callback_call(obj, EMOTION_OBJECT_EVENT_BUTTON_NUM_CHANGE, NULL);
+ efl_event_callback_legacy_call(obj, EMOTION_OBJECT_EVENT_BUTTON_NUM_CHANGE, NULL);
}
EAPI void
E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME);
sd->spu.button = button;
- efl_event_callback_call(obj, EMOTION_OBJECT_EVENT_BUTTON_CHANGE, NULL);
+ efl_event_callback_legacy_call(obj, EMOTION_OBJECT_EVENT_BUTTON_CHANGE, NULL);
}
EAPI void
$true otherwise
]]
}
+ event_callback_legacy_call {
+ [[Call the callbacks for an event of an object.
+
+ Like @.event_callback_call, but also call legacy smart callbacks
+ that have the same name of the given event.
+
+ @since 1.19
+ ]]
+ params {
+ @in desc: ref(const(Efl.Event.Description)); [[The description of the event to call]]
+ @in event_info: void_ptr; [[Extra event info to pass to the callbacks]]
+ }
+ return: bool; [[$false if one of the callbacks aborted the call,
+ $true otherwise
+ ]]
+ }
event_callback_stop {
[[Stop the current callback call.
}
static Eina_Bool
-_cb_desc_match(const Efl_Event_Description *a, const Efl_Event_Description *b)
+_cb_desc_match(const Efl_Event_Description *a, const Efl_Event_Description *b, Eina_Bool legacy_compare)
{
/* If one is legacy and the other is not, strcmp. Else, pointer compare. */
- if (EINA_UNLIKELY(_legacy_event_desc_is(a) != _legacy_event_desc_is(b)))
+ if (EINA_UNLIKELY(legacy_compare && (_legacy_event_desc_is(a) != _legacy_event_desc_is(b))))
{
return !strcmp(a->name, b->name);
}
return (a == b);
}
-EOLIAN static Eina_Bool
-_efl_object_event_callback_call(Eo *obj_id, Efl_Object_Data *pd,
+static inline Eina_Bool
+_event_callback_call(Eo *obj_id, Efl_Object_Data *pd,
const Efl_Event_Description *desc,
- void *event_info)
+ void *event_info,
+ Eina_Bool legacy_compare)
{
Eina_Bool callback_already_stopped = pd->callback_stopped;
Eina_Bool ret = EINA_TRUE;
for (it = cb->items.item_array; it->func; it++)
{
- if (!_cb_desc_match(it->desc, desc))
+ if (!_cb_desc_match(it->desc, desc, legacy_compare))
continue;
if (!it->desc->unfreezable &&
(event_freeze_count || pd->event_freeze_count))
}
else
{
- if (!_cb_desc_match(cb->items.item.desc, desc))
+ if (!_cb_desc_match(cb->items.item.desc, desc, legacy_compare))
continue;
if (!cb->items.item.desc->unfreezable &&
(event_freeze_count || pd->event_freeze_count))
return ret;
}
+EOLIAN static Eina_Bool
+_efl_object_event_callback_call(Eo *obj_id, Efl_Object_Data *pd,
+ const Efl_Event_Description *desc,
+ void *event_info)
+{
+ return _event_callback_call(obj_id, pd, desc, event_info, EINA_FALSE);
+}
+
+EOLIAN static Eina_Bool
+_efl_object_event_callback_legacy_call(Eo *obj_id, Efl_Object_Data *pd,
+ const Efl_Event_Description *desc,
+ void *event_info)
+{
+ return _event_callback_call(obj_id, pd, desc, event_info, EINA_TRUE);
+}
+
EOLIAN static void
_efl_object_event_callback_stop(Eo *obj EINA_UNUSED, Efl_Object_Data *pd)
{
void
evas_event_callback_call(Evas *eo_e, Evas_Callback_Type type, void *event_info)
{
- efl_event_callback_call(eo_e, _legacy_evas_callback_table(type), event_info);
+ efl_event_callback_legacy_call(eo_e, _legacy_evas_callback_table(type), event_info);
}
void
efl_event_desc = _legacy_evas_callback_table(type);
}
- efl_event_callback_call(eo_obj, efl_event_desc, event_info);
+ efl_event_callback_legacy_call(eo_obj, efl_event_desc, event_info);
if ((type == EVAS_CALLBACK_MOUSE_DOWN) || (type == EVAS_CALLBACK_MOUSE_UP))
efl_input_pointer_button_flags_set(event_info, flags);
{
Evas_Object_Protected_Data *obj = data;
- efl_event_callback_call(obj->object, EFL_EVENT_ANIMATOR_TICK, event->info);
+ efl_event_callback_legacy_call(obj->object, EFL_EVENT_ANIMATOR_TICK, event->info);
DBG("Emitting animator tick on %p.", obj->object);
}
{
pd = efl_data_scope_get(n, EVAS_CANVAS3D_NODE_CLASS);
if (box_intersection_box(&pd_target->aabb, &pd->aabb))
- ret = efl_event_callback_call(target_node, eo_desc, n);
+ ret = efl_event_callback_legacy_call(target_node, eo_desc, n);
}
if (!ret)
{
{
Eina_Bool ret = EINA_FALSE;
const Efl_Event_Description *eo_desc = efl_object_legacy_only_event_description_get("clicked");
- ret = efl_event_callback_call((Eo *)event->info, eo_desc, event->info);
+ ret = efl_event_callback_legacy_call((Eo *)event->info, eo_desc, event->info);
if (!ret)
efl_event_callback_stop(event->object);
evas_build_sphere(&pd->aabb, &pd->bsphere);
eo_desc = efl_object_legacy_only_event_description_get("collision,private");
- efl_event_callback_call(node, eo_desc, (void *)node);
+ efl_event_callback_legacy_call(node, eo_desc, (void *)node);
return EINA_TRUE;
}
/*Calling callback clicked*/
eo_desc = efl_object_legacy_only_event_description_get("clicked,private");
- efl_event_callback_call(picked_node, eo_desc, picked_node);
+ efl_event_callback_legacy_call(picked_node, eo_desc, picked_node);
return EINA_TRUE;
}
/*Calling callback clicked*/
eo_desc = efl_object_legacy_only_event_description_get("clicked,private");
- efl_event_callback_call(data.node, eo_desc, data.node);
+ efl_event_callback_legacy_call(data.node, eo_desc, data.node);
return EINA_TRUE;
}
priv->children = eina_list_append(priv->children, opt);
priv->children_changed = EINA_TRUE;
- efl_event_callback_call(o, EVAS_BOX_EVENT_CHILD_ADDED, opt);
+ efl_event_callback_legacy_call(o, EVAS_BOX_EVENT_CHILD_ADDED, opt);
return opt;
}
priv->children = eina_list_prepend(priv->children, opt);
priv->children_changed = EINA_TRUE;
- efl_event_callback_call(o, EVAS_BOX_EVENT_CHILD_ADDED, opt);
+ efl_event_callback_legacy_call(o, EVAS_BOX_EVENT_CHILD_ADDED, opt);
return opt;
}
priv->children = eina_list_prepend_relative
(priv->children, new_opt, opt);
priv->children_changed = EINA_TRUE;
- efl_event_callback_call(o, EVAS_BOX_EVENT_CHILD_ADDED, new_opt);
+ efl_event_callback_legacy_call(o, EVAS_BOX_EVENT_CHILD_ADDED, new_opt);
return new_opt;
}
}
priv->children = eina_list_append_relative
(priv->children, new_opt, opt);
priv->children_changed = EINA_TRUE;
- efl_event_callback_call(o, EVAS_BOX_EVENT_CHILD_ADDED, new_opt);
+ efl_event_callback_legacy_call(o, EVAS_BOX_EVENT_CHILD_ADDED, new_opt);
return new_opt;
}
}
priv->children = eina_list_prepend(priv->children, new_opt);
priv->children_changed = EINA_TRUE;
- efl_event_callback_call(o, EVAS_BOX_EVENT_CHILD_ADDED, new_opt);
+ efl_event_callback_legacy_call(o, EVAS_BOX_EVENT_CHILD_ADDED, new_opt);
return new_opt;
}
priv->children = eina_list_prepend_relative
(priv->children, new_opt, opt);
priv->children_changed = EINA_TRUE;
- efl_event_callback_call(o, EVAS_BOX_EVENT_CHILD_ADDED, new_opt);
+ efl_event_callback_legacy_call(o, EVAS_BOX_EVENT_CHILD_ADDED, new_opt);
return new_opt;
}
}
priv->children = eina_list_remove(priv->children, opt);
evas_obj_box_internal_option_free(o, opt);
priv->children_changed = EINA_TRUE;
- efl_event_callback_call(o, EVAS_BOX_EVENT_CHILD_REMOVED, obj);
+ efl_event_callback_legacy_call(o, EVAS_BOX_EVENT_CHILD_REMOVED, obj);
return obj;
}
priv->children = eina_list_remove_list(priv->children, node);
evas_obj_box_internal_option_free(o, opt);
priv->children_changed = EINA_TRUE;
- efl_event_callback_call(o, EVAS_BOX_EVENT_CHILD_REMOVED, obj);
+ efl_event_callback_legacy_call(o, EVAS_BOX_EVENT_CHILD_REMOVED, obj);
return obj;
}
if (!event) return;
const Efl_Event_Description *eo_desc = efl_object_legacy_only_event_description_get(event);
- efl_event_callback_call(eo_obj, eo_desc, event_info);
+ efl_event_callback_legacy_call(eo_obj, eo_desc, event_info);
}
EAPI Eina_Bool
if (cur->changed)
{
cur->changed = EINA_FALSE;
- efl_event_callback_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
}
}
EINA_LIST_FOREACH(o->cursors, l, data)
{
efl_event_thaw(data);
- efl_event_callback_call(data, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(data, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
}
}
efl_event_thaw(o->cursor);
- efl_event_callback_call(o->cursor, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(o->cursor, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
o->markup_text = text;
}
_efl_canvas_text_cursor_paragraph_first(Evas_Textblock_Cursor *cur_obj, Efl_Canvas_Text_Cursor_Data *cur)
{
_canvas_text_cursor_paragraph_first(cur);
- efl_event_callback_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
}
_efl_canvas_text_cursor_paragraph_last(Evas_Textblock_Cursor *cur_obj, Efl_Canvas_Text_Cursor_Data *cur)
{
_canvas_text_cursor_paragraph_last(cur);
- efl_event_callback_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
}
static Eina_Bool
_efl_canvas_text_cursor_paragraph_next(Evas_Textblock_Cursor *cur_obj, Efl_Canvas_Text_Cursor_Data *cur)
{
_evas_textblock_cursor_paragraph_next(cur);
- efl_event_callback_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
}
static Eina_Bool
_efl_canvas_text_cursor_paragraph_prev(Evas_Textblock_Cursor *cur_obj, Efl_Canvas_Text_Cursor_Data *cur)
{
_evas_textblock_cursor_paragraph_prev(cur);
- efl_event_callback_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
}
EAPI void
_efl_canvas_text_cursor_word_start(Evas_Textblock_Cursor *cur_obj, Efl_Canvas_Text_Cursor_Data *cur EINA_UNUSED)
{
evas_textblock_cursor_word_start(cur_obj);
- efl_event_callback_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
}
EAPI Eina_Bool
_efl_canvas_text_cursor_word_end(Evas_Textblock_Cursor *cur_obj, Efl_Canvas_Text_Cursor_Data *cur EINA_UNUSED)
{
evas_textblock_cursor_word_end(cur_obj);
- efl_event_callback_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
}
static Eina_Bool
_efl_canvas_text_cursor_char_next(Eo *cur_obj, Efl_Canvas_Text_Cursor_Data *cur)
{
_evas_textblock_cursor_char_next(cur);
- efl_event_callback_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
}
static Eina_Bool
_efl_canvas_text_cursor_char_prev(Eo *cur_obj, Efl_Canvas_Text_Cursor_Data *cur)
{
_evas_textblock_cursor_char_prev(cur);
- efl_event_callback_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
}
static void
_efl_canvas_text_cursor_paragraph_char_first(Evas_Textblock_Cursor *cur_obj, Efl_Canvas_Text_Cursor_Data *cur)
{
_evas_textblock_cursor_paragraph_char_first(cur);
- efl_event_callback_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
}
static void
_efl_canvas_text_cursor_paragraph_char_last(Evas_Textblock_Cursor *cur_obj, Efl_Canvas_Text_Cursor_Data *cur)
{
_evas_textblock_cursor_paragraph_char_last(cur);
- efl_event_callback_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
}
static void
if (!ln) return;
_cursor_line_first_char_get(ln, cur, o);
- efl_event_callback_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
}
static void
_efl_canvas_text_cursor_line_char_last(Evas_Textblock_Cursor *cur_obj, Efl_Canvas_Text_Cursor_Data *cur)
{
_evas_textblock_cursor_line_char_last(cur);
- efl_event_callback_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
}
/**
_efl_canvas_text_cursor_position_set(Eo *cur_obj, Efl_Canvas_Text_Cursor_Data *cur, int _pos)
{
_evas_textblock_cursor_pos_set(cur, _pos);
- efl_event_callback_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
}
EAPI Eina_Bool
evas_textblock_cursor_line_char_last(c);
}
- efl_event_callback_call(c, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(c, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
}
static int
if (!efl_canvas_text_cursor_equal(cur_obj, src_obj))
{
_evas_textblock_cursor_copy(cur, src);
- efl_event_callback_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
}
}
Efl_Canvas_Text_Cursor_Data *cur, const char *_text)
{
int len = _efl_canvas_text_cursor_text_append(cur, _text);
- efl_event_callback_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
return len;
}
_efl_canvas_text_cursor_char_delete(Eo *cur_obj, Efl_Canvas_Text_Cursor_Data *cur)
{
_evas_textblock_cursor_char_delete(cur);
- efl_event_callback_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
}
EAPI void
end:
if (ret)
{
- efl_event_callback_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(cur_obj, EFL_CANVAS_TEXT_CURSOR_EVENT_CHANGED, NULL);
}
return ret;
}
Efl_Canvas_Text_Data *o = efl_data_scope_get(cur->obj, MY_CLASS);
Efl_Canvas_Text_Annotation *ret =
_textblock_annotation_insert(cur->obj, o, cur, cur, format, EINA_TRUE);
- efl_event_callback_call(cur->obj, EFL_CANVAS_TEXT_EVENT_CHANGED, NULL);
+ efl_event_callback_legacy_call(cur->obj, EFL_CANVAS_TEXT_EVENT_CHANGED, NULL);
return ret;
}
if (!pd->flags) pd->flags = EFL_GFX_CHANGE_FLAG_ALL;
parent = efl_parent_get(event->object);
- efl_event_callback_call(parent, event->desc, event->info);
+ efl_event_callback_legacy_call(parent, event->desc, event->info);
}
static void
static inline void
_efl_vg_changed(Eo *obj)
{
- efl_event_callback_call(obj, EFL_GFX_CHANGED, NULL);
+ efl_event_callback_legacy_call(obj, EFL_GFX_CHANGED, NULL);
}
static inline void *
evas_object_image_size_get(ev->evas_obj, &w, &h);
_emotion_frame_resize(ev->obj, w, h, w / (double) h);
- efl_event_callback_call(ev->obj, EMOTION_OBJECT_EVENT_FRAME_DECODE, NULL);
+ efl_event_callback_legacy_call(ev->obj, EMOTION_OBJECT_EVENT_FRAME_DECODE, NULL);
}
/* Fetch all libvlc tracks. */
pd->protected.protected_x1 = a + 1;
pd->protected.public.public_x2 = a + 2;
- efl_event_callback_call(obj, EV_A_CHANGED, &pd->a);
+ efl_event_callback_legacy_call(obj, EV_A_CHANGED, &pd->a);
}
EAPI EFL_VOID_FUNC_BODYV(simple_a_set, EFL_FUNC_CALL(a), int a);
printf("%s %d\n", efl_class_name_get(MY_CLASS), a);
pd->a = a;
- efl_event_callback_call(obj, EV_A_CHANGED, &pd->a);
+ efl_event_callback_legacy_call(obj, EV_A_CHANGED, &pd->a);
}
static int
fail_if(inside);
inside = EINA_TRUE;
- efl_event_callback_call(event->object, event->desc, data);
+ efl_event_callback_legacy_call(event->object, event->desc, data);
inside = EINA_FALSE;
called++;
efl_event_callback_priority_add(obj, EV_RESTART, EFL_CALLBACK_PRIORITY_DEFAULT, _restart_1_cb, NULL);
efl_event_callback_priority_add(obj, EV_RESTART, EFL_CALLBACK_PRIORITY_BEFORE, _restart_2_cb, NULL);
- efl_event_callback_call(obj, EV_RESTART, NULL);
+ efl_event_callback_legacy_call(obj, EV_RESTART, NULL);
fail_if(inside);
fail_if(called != 2);
pd->a = a;
printf("%s %d\n", __func__, pd->a);
- efl_event_callback_call(obj, EV_A_CHANGED, &pd->a);
+ efl_event_callback_legacy_call(obj, EV_A_CHANGED, &pd->a);
}
void
printf("%s %d\n", efl_class_name_get(MY_CLASS), a);
pd->a = a;
- efl_event_callback_call(obj, EV_A_CHANGED, &pd->a);
+ efl_event_callback_legacy_call(obj, EV_A_CHANGED, &pd->a);
}
static int
_eo_signals_a_changed_within_cb(void *_data EINA_UNUSED, const Eo_Event *event)
{
int a = 3;
- efl_event_callback_call(event->object, EV_A_CHANGED, &a);
+ efl_event_callback_legacy_call(event->object, EV_A_CHANGED, &a);
_eo_signals_cb_flag = 0x8;
}
int a = 3;
_eo_signals_cb_current = 0;
_eo_signals_cb_flag = 0;
- efl_event_callback_call(obj, a_desc, &a);
+ efl_event_callback_legacy_call(obj, a_desc, &a);
ck_assert_int_eq(_eo_signals_cb_flag, 0x3);
/* Stop event within event. */
_eo_signals_cb_current = 0;
_eo_signals_cb_flag = 0;
- fail_if(!efl_event_callback_call(obj, EV_A_CHANGED2, &a));
+ fail_if(!efl_event_callback_legacy_call(obj, EV_A_CHANGED2, &a));
ck_assert_int_eq(_eo_signals_cb_flag, 0x8);
fail_if(!r);
}
static void _generic_call_event1(Eo *obj, Generic_Data* pd EINA_UNUSED)
{
- efl_event_callback_call(obj, GENERIC_EVENT_PREFIX_EVENT1, NULL);
+ efl_event_callback_legacy_call(obj, GENERIC_EVENT_PREFIX_EVENT1, NULL);
}
static void _generic_call_event2(Eo *obj, Generic_Data* pd EINA_UNUSED)
{
- efl_event_callback_call(obj, GENERIC_EVENT_PREFIX_EVENT2, obj);
+ efl_event_callback_legacy_call(obj, GENERIC_EVENT_PREFIX_EVENT2, obj);
}
static void _generic_call_event3(Eo *obj, Generic_Data* pd EINA_UNUSED)
{
int p = 42;
- efl_event_callback_call(obj, GENERIC_EVENT_PREFIX_EVENT3, &p);
+ efl_event_callback_legacy_call(obj, GENERIC_EVENT_PREFIX_EVENT3, &p);
}
static void _generic_call_event4(Eo *obj, Generic_Data* pd EINA_UNUSED)
{
int i = 42;
Eina_List* p = eina_list_append(NULL, &i);
ck_assert(p != NULL);
- efl_event_callback_call(obj, GENERIC_EVENT_PREFIX_EVENT4, p);
+ efl_event_callback_legacy_call(obj, GENERIC_EVENT_PREFIX_EVENT4, p);
eina_list_free(p);
}
static void _generic_call_event5(Eo *obj, Generic_Data* pd EINA_UNUSED)
Eina_List* p = eina_list_append(NULL, &i);
Generic_Event e = {.field1 = 42, .field2 = p};
- efl_event_callback_call(obj, GENERIC_EVENT_PREFIX_EVENT5, &e);
+ efl_event_callback_legacy_call(obj, GENERIC_EVENT_PREFIX_EVENT5, &e);
eina_list_free(p);
}
static void _generic_protected_method1(Eo *obj EINA_UNUSED, Generic_Data* pd EINA_UNUSED)
fprintf(stdout, "_test_object_event_emit()\n");
fflush(stdout);
static Test_Struct_Ex s = {42, TEST_ENUM_EX_THIRD};
- efl_event_callback_call(obj, TEST_OBJECT_EVENT_TEST, NULL);
- efl_event_callback_call(obj, TEST_OBJECT_EVENT_TEST_STRUCTARG, &s);
- efl_event_callback_call(obj, TEST_OBJECT_EVENT_TEST_STRINGARG, "foo");
+ efl_event_callback_legacy_call(obj, TEST_OBJECT_EVENT_TEST, NULL);
+ efl_event_callback_legacy_call(obj, TEST_OBJECT_EVENT_TEST_STRUCTARG, &s);
+ efl_event_callback_legacy_call(obj, TEST_OBJECT_EVENT_TEST_STRINGARG, "foo");
}
EOLIAN static char *