elm_entry: don't use window_id to determine type of window

there's a real function for this...

ref a173efd0a9
This commit is contained in:
Mike Blumenkrantz 2017-07-07 16:26:50 -04:00
parent 378ac8b6aa
commit fe48334c59
1 changed files with 2 additions and 4 deletions

View File

@ -2382,10 +2382,8 @@ _entry_paste_request_signal_cb(void *data,
efl_event_callback_legacy_call
(data, EFL_UI_EVENT_SELECTION_PASTE, NULL);
top = elm_widget_top_get(data);
if (!elm_win_window_id_get(top))
top = elm_widget_parent2_get(top);
if ((top) && (elm_win_window_id_get(top)))
top = _entry_win_get(data);
if (top)
{
Elm_Sel_Format formats = ELM_SEL_FORMAT_MARKUP | ELM_SEL_FORMAT_TEXT;