seoz pushed a commit to branch master.

commit cab89c73e6011ae84d28e7873383f7b8d728d749
Author: Thiep Ha <[email protected]>
Date:   Wed Jul 3 13:12:30 2013 +0900

    [Entry] Avoid showing multiple popups on one entry.
    
    Multiple popups (anchor hover and hoversel) are showing in following cases:
    - Run elementary_test with Mobile profile --> Entry Anchor
    + click on anchor to show hover, then press menu key
    + right click on anchor
---
 ChangeLog           | 5 +++++
 NEWS                | 1 +
 src/lib/elm_entry.c | 3 +++
 3 files changed, 9 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 06dc04b..530b9bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1473,3 +1473,8 @@
 
         * Add the elm_scrollable_interface_content_viewport_resize_cb_set.
         When the viewport is resized, the enrolled function is called.
+
+2013-07-03  Thiep Ha
+
+        * Fix bug of showing multiple popups in Entry.
+
diff --git a/NEWS b/NEWS
index e476954..a3fa732 100644
--- a/NEWS
+++ b/NEWS
@@ -254,6 +254,7 @@ Fixes:
    * Block mouse events when the ctxpopup on dismiss.
    * Fix crash of elm_notify when timeout is zero.
    * Fix Segfault in elementary file_selector_example when closed
+   * Fix Showing multiple popups in Entry.
 
 Removals:
 
diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c
index 2f44f25..80fb84b 100644
--- a/src/lib/elm_entry.c
+++ b/src/lib/elm_entry.c
@@ -1241,6 +1241,7 @@ _menu_call(Evas_Object *obj)
 
    ELM_ENTRY_DATA_GET(obj, sd);
 
+   if (sd->anchor_hover.hover) return;
    if ((sd->api) && (sd->api->obj_longpress))
      {
         sd->api->obj_longpress(obj);
@@ -2042,6 +2043,8 @@ _entry_hover_anchor_clicked_do(Evas_Object *obj,
 
    ELM_ENTRY_DATA_GET(obj, sd);
 
+   if (sd->hoversel) return;
+
    ei.anchor_info = info;
 
    sd->anchor_hover.pop = elm_icon_add(obj);

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to