/*******
* END *
*******/
- if (sd->sel_change_timeout) ecore_timer_del(sd->sel_change_timeout);
- sd->sel_change_timeout = ecore_timer_add(0.02, _entry_selection_changed_signal_job_cb, data);
}
/* Since context menu disabled flag was checked at mouse right key down,
* hence the same should be stopped at mouse up of right key as well */
// return win && elm_win_wl_window_get(win);
//}
-static Eina_Bool
-_entry_selection_changed_signal_job_cb(void *data)
+static void
+_entry_selection_changed_signal_cb(void *data,
+ Evas_Object *obj EINA_UNUSED,
+ const char *emission EINA_UNUSED,
+ const char *source EINA_UNUSED)
{
ELM_ENTRY_DATA_GET(data, sd);
- if (!sd) return EINA_FALSE;
- sd->sel_change_timeout = NULL;
+ if (!sd) return;
sd->have_selection = EINA_TRUE;
efl_event_callback_legacy_call
(data, EFL_UI_EVENT_SELECTION_CHANGED, NULL);
// XXX: still try primary selection even if on wl in case it's
// supported
// if (!_entry_win_is_wl(data))
- if (!evas_pointer_button_down_mask_get(evas_object_evas_get(sd->entry_edje)))
_selection_store(ELM_SEL_TYPE_PRIMARY, data);
_update_selection_handler(data);
if (_elm_atspi_enabled())
efl_access_event_emit(EFL_ACCESS_MIXIN, data, EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_SELECTION_CHANGED, NULL);
- return EINA_FALSE;
-}
-
-static void
-_entry_selection_changed_signal_cb(void *data,
- Evas_Object *obj EINA_UNUSED,
- const char *emission EINA_UNUSED,
- const char *source EINA_UNUSED)
-{
- ELM_ENTRY_DATA_GET(data, sd);
-
- if (sd->sel_change_timeout) ecore_timer_del(sd->sel_change_timeout);
- sd->sel_change_timeout = ecore_timer_add(0.02, _entry_selection_changed_signal_job_cb, data);
}
static void
eina_stringshare_del(sd->file);
- ecore_timer_del(sd->sel_change_timeout);
- sd->sel_change_timeout = NULL;
ecore_job_del(sd->hov_deljob);
if ((sd->api) && (sd->api->obj_unhook))
sd->api->obj_unhook(obj); // module - unhook