Hi,
In elementary entry widget, context menu appear even though the state of
entry is disabled.
This patch is for solving this problem.
This patch will make entry not to process the mouse event in the disable
state.
Would you please review it and apply in svn?
Index: elm_entry.c
===================================================================
--- elm_entry.c (revision 57464)
+++ elm_entry.c (working copy)
@@ -922,6 +922,7 @@ _mouse_down(void *data, Evas *evas __UNUSED__, Eva
Widget_Data *wd = elm_widget_data_get(data);
Evas_Event_Mouse_Down *ev = event_info;
if (!wd) return;
+ if (wd->disabled) return;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
if (ev->button != 1) return;
// if (ev->flags & EVAS_BUTTON_DOUBLE_CLICK)
@@ -937,6 +938,7 @@ _mouse_up(void *data, Evas *evas __UNUSED__, Evas_
Widget_Data *wd = elm_widget_data_get(data);
Evas_Event_Mouse_Up *ev = event_info;
if (!wd) return;
+ if (wd->disabled) return;
if (ev->button != 1) return;
if (wd->longpress_timer)
{
@@ -951,6 +953,7 @@ _mouse_move(void *data, Evas *evas __UNUSED__, Eva
Widget_Data *wd = elm_widget_data_get(data);
Evas_Event_Mouse_Move *ev = event_info;
if (!wd) return;
+ if (wd->disabled) return;
if (!wd->selmode)
{
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD)
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel