From 2f8b8ff1f3ebfe55ad421d39bc249d47fbc4374b Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 17 Mar 2016 15:08:12 -0400 Subject: [PATCH] entry: do not set selection on selection,start signal this is already handled by the selection,changed signal and creates duplicated events @fix --- legacy/elementary/src/lib/elm_entry.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/legacy/elementary/src/lib/elm_entry.c b/legacy/elementary/src/lib/elm_entry.c index 75042ab..42279fa 100644 --- a/legacy/elementary/src/lib/elm_entry.c +++ b/legacy/elementary/src/lib/elm_entry.c @@ -2152,8 +2152,6 @@ _entry_selection_start_signal_cb(void *data, { const Eina_List *l; Evas_Object *entry; - const char *txt = elm_entry_selection_get(data); - Evas_Object *top; EINA_LIST_FOREACH(entries, l, entry) { @@ -2162,13 +2160,6 @@ _entry_selection_start_signal_cb(void *data, eo_event_callback_call (data, EVAS_SELECTABLE_INTERFACE_EVENT_SELECTION_START, NULL); - top = elm_widget_top_get(data); - if (txt && top && (elm_win_window_id_get(top))) - { - elm_cnp_selection_set(data, ELM_SEL_TYPE_PRIMARY, - ELM_SEL_FORMAT_MARKUP, txt, strlen(txt)); - elm_cnp_selection_loss_callback_set(data, ELM_SEL_TYPE_PRIMARY, _selection_clear, data); - } elm_object_focus_set(data, EINA_TRUE); } -- 2.7.4