Change-Id: I90362a605cdaa10a64548003852e4448ba81c984
Edje *ed = data;
Edje_Real_Part *rp = ed->focused_part;
Entry *en = NULL;
+ const char *selection_text = NULL;
if (!rp) return EINA_FALSE;
if ((rp->type != EDJE_RP_TYPE_TEXT) ||
if (en->have_selection)
{
+ selection_text = _edje_entry_selection_get(rp);
+
if (text)
- *text = strdup(_edje_entry_selection_get(rp));
- return EINA_TRUE;
+ *text = selection_text ? strdup(selection_text) : NULL;
+
+ return selection_text ? EINA_TRUE : EINA_FALSE;
}
else
return EINA_FALSE;