summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2020-01-17 07:50:07 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-02-12 16:04:45 +0100
commit63e20ed28d721c8e7d61113e67917fd9d4d0586c (patch)
tree5e91113bc0ad4a4dc8d6b38689d59b4237b9ad07
parentb7db2edeeca402a4999b3d3a3807ec7f2ce8bc0d (diff)
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
-rw-r--r--src/lib/elementary/efl_ui_panes.c4
-rw-r--r--src/lib/elementary/efl_ui_panes.eo4
2 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/elementary/efl_ui_panes.c b/src/lib/elementary/efl_ui_panes.c
index 3047fb3..1b2c765 100644
--- a/src/lib/elementary/efl_ui_panes.c
+++ b/src/lib/elementary/efl_ui_panes.c
@@ -181,7 +181,7 @@ _on_pressed(void *data,
181 const char *emission EINA_UNUSED, 181 const char *emission EINA_UNUSED,
182 const char *source EINA_UNUSED) 182 const char *source EINA_UNUSED)
183{ 183{
184 efl_event_callback_legacy_call(data, ELM_PANES_EVENT_PRESS, NULL); 184 evas_object_smart_callback_call(data, "press", NULL);
185 efl_input_clickable_press(data, 1); 185 efl_input_clickable_press(data, 1);
186} 186}
187 187
@@ -192,7 +192,7 @@ _on_unpressed(void *data,
192 const char *source EINA_UNUSED) 192 const char *source EINA_UNUSED)
193{ 193{
194 EFL_UI_PANES_DATA_GET(data, sd); 194 EFL_UI_PANES_DATA_GET(data, sd);
195 efl_event_callback_legacy_call(data, ELM_PANES_EVENT_UNPRESS, NULL); 195 evas_object_smart_callback_call(data, "unpress", NULL);
196 efl_input_clickable_unpress(data, 1); 196 efl_input_clickable_unpress(data, 1);
197 if (sd->double_clicked) 197 if (sd->double_clicked)
198 { 198 {
diff --git a/src/lib/elementary/efl_ui_panes.eo b/src/lib/elementary/efl_ui_panes.eo
index 00d1353..6c6402c 100644
--- a/src/lib/elementary/efl_ui_panes.eo
+++ b/src/lib/elementary/efl_ui_panes.eo
@@ -53,8 +53,4 @@ class @beta Efl.Ui.Panes extends Efl.Ui.Layout_Base implements Efl.Ui.Layout_Ori
53 Default is $vertical.]] } 53 Default is $vertical.]] }
54 Efl.Part.part_get; 54 Efl.Part.part_get;
55 } 55 }
56 events {
57 press: void; [[Called when panes got pressed]]
58 unpress: void; [[Called when panes are no longer pressed]]
59 }
60} 56}