jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=4012858ffef04186db8e3cfb7ee394710a965e47

commit 4012858ffef04186db8e3cfb7ee394710a965e47
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Fri Sep 27 17:09:36 2013 +0900

    elm_image: Remove double callback on mouse_up
    
    In case of MOUSE_UP event, both the hit rectangle and the
    smart image object received the event, thus producing double
    clicks.
---
 src/lib/elm_image.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/lib/elm_image.c b/src/lib/elm_image.c
index 24cb966..8d2d17d 100644
--- a/src/lib/elm_image.c
+++ b/src/lib/elm_image.c
@@ -94,8 +94,6 @@ _img_new(Evas_Object *obj)
    evas_object_repeat_events_set(img, EINA_TRUE);
    evas_object_event_callback_add
      (img, EVAS_CALLBACK_IMAGE_PRELOADED, _on_image_preloaded, sd);
-   evas_object_event_callback_add
-     (img, EVAS_CALLBACK_MOUSE_UP, _on_mouse_up, obj);
 
    evas_object_smart_member_add(img, obj);
    elm_widget_sub_object_add(obj, img);
@@ -211,8 +209,6 @@ _elm_image_edje_file_set(Evas_Object *obj,
         evas_object_smart_member_add(sd->img, obj);
         if (sd->show) evas_object_show(sd->img);
         evas_object_clip_set(sd->img, pclip);
-        evas_object_event_callback_add
-           (sd->img, EVAS_CALLBACK_MOUSE_UP, _on_mouse_up, obj);
      }
 
    sd->edje = EINA_TRUE;

-- 


Reply via email to