}
static void
+_emit_sel_state(Edje *ed, Entry *en)
+{
+ if (!evas_textblock_cursor_compare(en->sel_start, en->sel_end))
+ {
+ _edje_emit(ed, "selection,reset", en->rp->part->name);
+ }
+ else
+ {
+ _edje_emit(ed, "selection,changed", en->rp->part->name);
+ }
+}
+
+static void
_sel_extend(Edje *ed, Evas_Textblock_Cursor *c, Evas_Object *o, Entry *en)
{
if (!en->sel_end) return;
free(en->selection);
en->selection = NULL;
}
- _edje_emit(ed, "selection,changed", en->rp->part->name);
+ _emit_sel_state(ed, en);
}
static void
free(en->selection);
en->selection = NULL;
}
- _edje_emit(ed, "selection,changed", en->rp->part->name);
+ _emit_sel_state(ed, en);
}
static void