entry: fix to make selection handlers be disappeared when cutting text 70/92670/2
authorWooHyun Jung <wh0705.jung@samsung.com>
Tue, 18 Oct 2016 05:13:35 +0000 (14:13 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Tue, 18 Oct 2016 07:31:38 +0000 (00:31 -0700)
If user cuts text from entry, and its size changes, registered job for
updating selection handler should be deleted.

Change-Id: Id611af0258039c6fcf3d534b49a57efc2862449e

src/lib/elm_entry.c

index 8cc4db1..1f5df60 100644 (file)
@@ -1222,6 +1222,14 @@ _hide_selection_handler(Evas_Object *obj)
         //
         sd->end_handler_shown = EINA_FALSE;
      }
+   // TIZEN ONLY (20161018): selection handler should not be updated
+   //                        after hiding handlers.
+   if (sd->sel_handler_update_job)
+     {
+        ecore_job_del(sd->sel_handler_update_job);
+        sd->sel_handler_update_job = NULL;
+     }
+   //
 }
 
 static Eina_Rectangle *