summaryrefslogtreecommitdiff
path: root/src/lib/evas/gesture
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-03-29 00:42:10 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-03-29 13:30:55 +0900
commit2fb5cc3ad09f6aaf82b5d1131ac5ed22ed848bd4 (patch)
tree7a2c2c0371789ae4b139ebdf4a9ef60f82d324aa /src/lib/evas/gesture
parentcc2b7a10a8236e2b3cc4a25b4b4fda95e00884fc (diff)
efl_add_ref - fis to use efl_add properly with a parent.
fixes bc18b7e7ad1f8c5d587400b27fabab0865017011 and 168849e8a08966ecc284e28f64126a3a85965965
Diffstat (limited to 'src/lib/evas/gesture')
-rw-r--r--src/lib/evas/gesture/efl_canvas_gesture_manager.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/lib/evas/gesture/efl_canvas_gesture_manager.c b/src/lib/evas/gesture/efl_canvas_gesture_manager.c
index 88bcdd0..ebd40d0 100644
--- a/src/lib/evas/gesture/efl_canvas_gesture_manager.c
+++ b/src/lib/evas/gesture/efl_canvas_gesture_manager.c
@@ -47,12 +47,6 @@ _cleanup_object(Eina_List *list)
47} 47}
48 48
49static void 49static void
50_hash_unref_cb(Eo *obj)
51{
52 efl_unref(obj);
53}
54
55static void
56_hash_free_cb(Eo *obj) 50_hash_free_cb(Eo *obj)
57{ 51{
58 efl_del(obj); 52 efl_del(obj);
@@ -65,7 +59,7 @@ _efl_canvas_gesture_manager_efl_object_constructor(Eo *obj, Efl_Canvas_Gesture_M
65 59
66 pd->m_recognizers = eina_hash_pointer_new(EINA_FREE_CB(_hash_free_cb)); 60 pd->m_recognizers = eina_hash_pointer_new(EINA_FREE_CB(_hash_free_cb));
67 pd->m_gesture_contex = eina_hash_pointer_new(NULL); 61 pd->m_gesture_contex = eina_hash_pointer_new(NULL);
68 pd->m_object_events = eina_hash_pointer_new(EINA_FREE_CB(_hash_unref_cb)); 62 pd->m_object_events = eina_hash_pointer_new(EINA_FREE_CB(_hash_free_cb));
69 pd->m_object_gestures = NULL; 63 pd->m_object_gestures = NULL;
70 pd->m_gestures_to_delete = NULL; 64 pd->m_gestures_to_delete = NULL;
71 65
@@ -150,7 +144,7 @@ _efl_canvas_gesture_manager_filter_event(Eo *obj, Eo *target, void *event)
150 touch_event = eina_hash_find(pd->m_object_events, &target); 144 touch_event = eina_hash_find(pd->m_object_events, &target);
151 if (!touch_event) 145 if (!touch_event)
152 { 146 {
153 touch_event = efl_add_ref(EFL_CANVAS_GESTURE_TOUCH_CLASS, NULL); 147 touch_event = efl_add(EFL_CANVAS_GESTURE_TOUCH_CLASS, efl_provider_find(obj, EFL_LOOP_CLASS));
154 eina_hash_add(pd->m_object_events, &target, touch_event); 148 eina_hash_add(pd->m_object_events, &target, touch_event);
155 } 149 }
156 150