From f42482bc994c7b4c95966e90aa46b5f9dbfd56a5 Mon Sep 17 00:00:00 2001 From: discomfitor Date: Mon, 19 Mar 2012 16:56:28 +0000 Subject: [PATCH] again, mandatory hover menus are not suitable for desktop profiles. applications will want to provide their own menus, and having a whole menu to provide functionality available by clicking and dragging is not the best idea git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@69510 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_entry.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c index 4dc8795..a918fd3 100644 --- a/src/lib/elm_entry.c +++ b/src/lib/elm_entry.c @@ -1400,7 +1400,8 @@ _long_press(void *data) { Widget_Data *wd = elm_widget_data_get(data); if (!wd) return ECORE_CALLBACK_CANCEL; - _menu_press(data); + if (!_elm_config->desktop_entry) + _menu_press(data); wd->longpress_timer = NULL; evas_object_smart_callback_call(data, SIG_LONGPRESSED, NULL); return ECORE_CALLBACK_CANCEL; @@ -1438,7 +1439,7 @@ _mouse_up(void *data, Evas *evas __UNUSED__, Evas_Object *obj __UNUSED__, void * wd->longpress_timer = NULL; } } - else if (ev->button == 3) + else if ((ev->button == 3) && (!_elm_config->desktop_entry)) { wd->usedown = 1; _menu_press(data); -- 2.7.4