Eina_Bool selmode : 1;
Eina_Bool deferred_cur : 1;
Eina_Bool disabled : 1;
+ Eina_Bool double_clicked : 1;
Eina_Bool context_menu : 1;
Eina_Bool drag_selection_asked : 1;
Eina_Bool bgcolor : 1;
const Eina_List *l;
const Elm_Entry_Context_Menu_Item *it;
if (!wd) return ECORE_CALLBACK_CANCEL;
+
+ if (wd->longpress_timer)
+ {
+ ecore_timer_del(wd->longpress_timer);
+ wd->longpress_timer = NULL;
+ }
+
if ((wd->api) && (wd->api->obj_longpress))
{
wd->api->obj_longpress(data);
Evas_Event_Mouse_Up *ev = event_info;
if (!wd) return;
if (ev->button != 1) return;
- if ((wd->api) && (wd->api->obj_mouseup))
- {
- wd->api->obj_mouseup(data);
- }
+
+ if (!wd->double_clicked)
+ {
+ if ((wd->api) && (wd->api->obj_mouseup))
+ {
+ wd->api->obj_mouseup(data);
+ }
+ }
if (wd->longpress_timer)
{
ecore_timer_del(wd->longpress_timer);
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
+ wd->double_clicked = EINA_FALSE;
evas_object_smart_callback_call(data, SIG_PRESS, NULL);
}
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
+ wd->double_clicked = EINA_TRUE;
evas_object_smart_callback_call(data, SIG_CLICKED_DOUBLE, NULL);
}
EAPI void
obj_longpress(Evas_Object *obj)
-{
+{
if(!ext_mod) return;
Evas_Object *top;
const Eina_List *l;
if(top)
ext_mod->popup = elm_ctxpopup_add(top);
/*currently below theme not used,when guideline comes a new theme can be created if required*/
- //elm_object_style_set(ext_mod->popup,"entry");
+ elm_object_style_set(ext_mod->popup,"extended/entry");
elm_ctxpopup_scroller_disabled_set(ext_mod->popup, EINA_TRUE);
context_menu_orientation = edje_object_data_get
(ext_mod->ent, "context_menu_orientation");
EAPI void
obj_mouseup(Evas_Object *obj)
{
-
if (!obj || !ext_mod) {
return;
}
_cancel(obj,ext_mod->popup,NULL);
}
}
- else
- {
- if (ext_mod->have_selection )
- {
- obj_longpress( obj );
- }
- }
}