forked from enlightenment/efl
efl_ui_panes: remove duplicated press/unpress event
pressed/unpressed event will be emitted by efl_input_clickable_press/unpress. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D11116
This commit is contained in:
parent
b7db2edeec
commit
63e20ed28d
|
@ -181,7 +181,7 @@ _on_pressed(void *data,
|
||||||
const char *emission EINA_UNUSED,
|
const char *emission EINA_UNUSED,
|
||||||
const char *source EINA_UNUSED)
|
const char *source EINA_UNUSED)
|
||||||
{
|
{
|
||||||
efl_event_callback_legacy_call(data, ELM_PANES_EVENT_PRESS, NULL);
|
evas_object_smart_callback_call(data, "press", NULL);
|
||||||
efl_input_clickable_press(data, 1);
|
efl_input_clickable_press(data, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -192,7 +192,7 @@ _on_unpressed(void *data,
|
||||||
const char *source EINA_UNUSED)
|
const char *source EINA_UNUSED)
|
||||||
{
|
{
|
||||||
EFL_UI_PANES_DATA_GET(data, sd);
|
EFL_UI_PANES_DATA_GET(data, sd);
|
||||||
efl_event_callback_legacy_call(data, ELM_PANES_EVENT_UNPRESS, NULL);
|
evas_object_smart_callback_call(data, "unpress", NULL);
|
||||||
efl_input_clickable_unpress(data, 1);
|
efl_input_clickable_unpress(data, 1);
|
||||||
if (sd->double_clicked)
|
if (sd->double_clicked)
|
||||||
{
|
{
|
||||||
|
|
|
@ -53,8 +53,4 @@ class @beta Efl.Ui.Panes extends Efl.Ui.Layout_Base implements Efl.Ui.Layout_Ori
|
||||||
Default is $vertical.]] }
|
Default is $vertical.]] }
|
||||||
Efl.Part.part_get;
|
Efl.Part.part_get;
|
||||||
}
|
}
|
||||||
events {
|
|
||||||
press: void; [[Called when panes got pressed]]
|
|
||||||
unpress: void; [[Called when panes are no longer pressed]]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue