efl_gesture_manager: Delete type property.

Summary:
User already know the gesture type.
And the gesture type(Efl.Event.Description) can't using after binding.

T7959

Reviewers: Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T7959

Differential Revision: https://phab.enlightenment.org/D9033
This commit is contained in:
Woochanlee 2019-06-05 20:31:19 +09:00 committed by Jaehyun Cho
parent a4bcd15498
commit 7ecc1815ba
4 changed files with 7 additions and 12 deletions

View File

@ -2,9 +2,11 @@
#define MY_CLASS EFL_CANVAS_GESTURE_CLASS
EOLIAN static const Efl_Event_Description *
_efl_canvas_gesture_type_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Data *pd)
const Efl_Event_Description *
_efl_gesture_type_get(const Eo *obj)
{
Efl_Canvas_Gesture_Data *pd = efl_data_scope_get(obj, EFL_CANVAS_GESTURE_CLASS);
return pd->type;
}

View File

@ -11,14 +11,6 @@ abstract @beta Efl.Canvas.Gesture extends Efl.Object
information to the user.]]
c_prefix: efl_gesture;
methods {
@property type {
[[This property holds the type of the gesture.]]
get {
}
values {
@cref type: Efl.Event_Description; [[gesture type]]
}
}
@property state {
[[This property holds the current state of the gesture.]]
get {

View File

@ -262,7 +262,7 @@ _efl_canvas_gesture_manager_recognizer_register(Eo *obj EINA_UNUSED, Efl_Canvas_
if (!dummy)
return;
const Efl_Event_Description *type = efl_gesture_type_get(dummy);
const Efl_Event_Description *type = _efl_gesture_type_get(dummy);
//Add the recognizer to the m_recognizers
eina_hash_add(pd->m_recognizers, &type, efl_ref(recognizer));
@ -288,7 +288,7 @@ _efl_canvas_gesture_manager_recognizer_unregister(Eo *obj EINA_UNUSED, Efl_Canva
dummy = efl_gesture_recognizer_add(recognizer, 0);
if (!dummy)return;
type = efl_gesture_type_get(dummy);
type = _efl_gesture_type_get(dummy);
efl_del(dummy);
//Check if its already registered

View File

@ -10,6 +10,7 @@
#include <Ecore.h>
const Efl_Event_Description * _efl_gesture_type_get(const Eo *obj);
void efl_gesture_manager_gesture_clean_up(Eo *obj, Eo *target, const Efl_Event_Description *type);
typedef struct _Efl_Canvas_Gesture_Manager_Data Efl_Canvas_Gesture_Manager_Data;