}
static void
-_edje_entry_mouse_double_clicked(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
+_edje_entry_select_word(Edje_Real_Part *rp)
{
- Edje_Real_Part *rp = data;
Entry *en;
if (!rp) return;
en = rp->entry_data;
- if (!en) return;
- en->double_clicked = EINA_TRUE;
-
const char *ct = NULL;
int block_type;
Eina_Strbuf *str;
_edje_entry_select_extend(rp);
en->select_allow = EINA_TRUE;
- //en->select_mod_end = EINA_TRUE;
- //en->had_sel = EINA_TRUE;
+ en->had_sel = EINA_TRUE;
en->selecting = EINA_FALSE;
//printf("string : %s \n", eina_strbuf_string_get(str));
}
static void
+_edje_entry_mouse_double_clicked(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
+{
+ Edje_Real_Part *rp = data;
+ Entry *en;
+ if (!rp) return;
+ en = rp->entry_data;
+
+ if (!en) return;
+ en->double_clicked = EINA_TRUE;
+
+ _edje_entry_select_word(rp);
+}
+
+static void
_edje_part_mouse_down_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Edje_Real_Part *rp = data;
if ((allow) && (rp->part->select_mode == EDJE_ENTRY_SELECTION_MODE_BLOCK_HANDLE))
{
- _edje_entry_mouse_double_clicked(rp, NULL, NULL, NULL);
+ _edje_entry_select_word(rp);
}
}