evas: Make efl_input_device_seat_id_get() more useful

And cleanup the EO file a little bit.
This commit is contained in:
Jean-Philippe Andre 2017-05-24 13:12:51 +09:00
parent 3cdd290f17
commit 12748a039e
2 changed files with 5 additions and 9 deletions

View File

@ -109,10 +109,11 @@ _efl_input_device_seat_id_set(Eo *obj EINA_UNUSED, Efl_Input_Device_Data *pd, un
}
EOLIAN static unsigned int
_efl_input_device_seat_id_get(Eo *obj EINA_UNUSED, Efl_Input_Device_Data *pd)
_efl_input_device_seat_id_get(Eo *obj, Efl_Input_Device_Data *pd)
{
EINA_SAFETY_ON_TRUE_RETURN_VAL(pd->klass != EFL_INPUT_DEVICE_CLASS_SEAT, 0);
return pd->id;
if (pd->klass == EFL_INPUT_DEVICE_CLASS_SEAT)
return pd->id;
return efl_input_device_seat_id_get(efl_input_device_seat_get(obj));
}
EOLIAN static Efl_Input_Device *

View File

@ -38,7 +38,6 @@ enum Efl.Input.Device.Sub_Class
}
/* This represents Evas_Device */
/* FIXME: no children and no Evas */
class Efl.Input.Device (Efl.Object)
@ -48,7 +47,6 @@ class Efl.Input.Device (Efl.Object)
@since 1.18
]]
methods {
/* FIXME: device_class makes compilation error because of class_get() */
@property device_type {
[[Device type property]]
values {
@ -81,8 +79,6 @@ class Efl.Input.Device (Efl.Object)
}
@property parent {
[[Device parent property]]
set {}
get {}
values {
parent: Efl.Input.Device; [[Parent input device]]
}
@ -105,10 +101,9 @@ class Efl.Input.Device (Efl.Object)
}
@property seat_id {
[[Seat id number
@since 1.20
]]
set{}
get{}
values {
id: uint; [[The id of the seat]]
}