From a2cfa9340a4650eae965a920788c0edd1141cfe4 Mon Sep 17 00:00:00 2001 From: WooHyun Jung Date: Mon, 25 Feb 2019 13:13:21 +0900 Subject: [PATCH] efl_ui_widget: remove "moved" event Summary: This "moved" event is only used by elm_gengrid now. And it's not something common for all widget classes, because the event is giving notification when the legacy item is reordered. ref T7553 Test Plan: elementary_test "GenGrid" Reviewers: bu5hm4n, YOhoho, Jaehyun_Cho Reviewed By: bu5hm4n, YOhoho Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7553 Differential Revision: https://phab.enlightenment.org/D8005 --- src/lib/elementary/efl_ui_widget.eo | 1 - src/lib/elementary/elm_gengrid.c | 4 ++-- src/lib/elementary/elm_gengrid.eo | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/elementary/efl_ui_widget.eo b/src/lib/elementary/efl_ui_widget.eo index 4e7bc806e9..9565c35ad2 100644 --- a/src/lib/elementary/efl_ui_widget.eo +++ b/src/lib/elementary/efl_ui_widget.eo @@ -659,7 +659,6 @@ abstract @beta Efl.Ui.Widget extends Efl.Canvas.Group implements Efl.Access.Obje .style @optional; } events { - moved: Efl.Object; [[Called when widget moved]] language,changed: void; [[Called when widget language changed]] access,changed: void; [[Called when accessibility changed]] } diff --git a/src/lib/elementary/elm_gengrid.c b/src/lib/elementary/elm_gengrid.c index bd2bf7b91b..febe0b86c7 100644 --- a/src/lib/elementary/elm_gengrid.c +++ b/src/lib/elementary/elm_gengrid.c @@ -1315,7 +1315,7 @@ _item_mouse_up_cb(void *data, (sd->reorder_it)) { efl_event_callback_legacy_call - (WIDGET(it), EFL_UI_WIDGET_EVENT_MOVED, EO_OBJ(sd->reorder_it)); + (WIDGET(it), ELM_GENGRID_EVENT_MOVED, EO_OBJ(sd->reorder_it)); sd->reorder_it = NULL; sd->move_effect_enabled = EINA_FALSE; ecore_job_del(sd->calc_job); @@ -2876,7 +2876,7 @@ _item_move_cb(void *data, double pos) efl_event_callback_legacy_call (sd->obj, ELM_GENGRID_EVENT_ITEM_REORDER_ANIM_STOP, EO_OBJ(sd->reorder.it1)); efl_event_callback_legacy_call - (sd->obj, EFL_UI_WIDGET_EVENT_MOVED, EO_OBJ(sd->reorder.it1)); + (sd->obj, ELM_GENGRID_EVENT_MOVED, EO_OBJ(sd->reorder.it1)); sd->reorder.running = EINA_FALSE; } _elm_widget_focus_highlight_start(sd->obj); diff --git a/src/lib/elementary/elm_gengrid.eo b/src/lib/elementary/elm_gengrid.eo index 9907ba2d2d..e397ad4987 100644 --- a/src/lib/elementary/elm_gengrid.eo +++ b/src/lib/elementary/elm_gengrid.eo @@ -548,5 +548,6 @@ class Elm.Gengrid extends Efl.Ui.Layout implements Efl.Ui.Focus.Composition, Elm highlighted: Efl.Object; [[Called when gengrid is highlighted]] unhighlighted: Efl.Object; [[Called when gengrid is no longer highlighted]] released: Efl.Object; [[Called when gengrid is released]] + moved: Efl.Object; [[Called when gengrid item moved]] } }