seoz pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=97039d7f206670cba1ce5b2dfd4c31944dace4c8
commit 97039d7f206670cba1ce5b2dfd4c31944dace4c8 Author: Daniel Juyung Seo <seojuyu...@gmail.com> Date: Tue Mar 11 02:27:26 2014 +0900 actionslider: Fixed wrong signal names but still support backward compatibility. - "elm.drag_button,mouse,up" -> "elm,action,up,drag_button" - "elm.drag_button,mouse,down" -> "elm,action,down,drag_button" - "elm.drag_button,mouse,move" -> "elm,action,move,drag_button" This is not the target of backport. --- data/themes/edc/elm/actionslider.edc | 6 +++--- src/lib/elm_actionslider.c | 11 +++++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/data/themes/edc/elm/actionslider.edc b/data/themes/edc/elm/actionslider.edc index 75d6ad9..0950396 100644 --- a/data/themes/edc/elm/actionslider.edc +++ b/data/themes/edc/elm/actionslider.edc @@ -207,7 +207,7 @@ group { name: "elm/actionslider/base/default"; programs { program { signal: "mouse,up,1"; source: "elm.drag_button"; - action: SIGNAL_EMIT "elm.drag_button,mouse,up" "elm"; + action: SIGNAL_EMIT "elm,action,up,drag_button" "elm"; after: "button_unclick_anim"; } program { name: "button_unclick_anim"; @@ -217,7 +217,7 @@ group { name: "elm/actionslider/base/default"; } program { signal: "mouse,down,1*"; source: "elm.drag_button"; - action: SIGNAL_EMIT "elm.drag_button,mouse,down" "elm"; + action: SIGNAL_EMIT "elm,action,down,drag_button" "elm"; after: "button_click_anim"; } program { name: "button_click_anim"; @@ -227,7 +227,7 @@ group { name: "elm/actionslider/base/default"; } program { signal: "mouse,move"; source: "elm.drag_button_base"; - action: SIGNAL_EMIT "elm.drag_button,mouse,move" "elm"; + action: SIGNAL_EMIT "elm,action,move,drag_button" "elm"; } program { signal: "mouse,down,1*"; source: "elm.text.right"; diff --git a/src/lib/elm_actionslider.c b/src/lib/elm_actionslider.c index 6cc92cc..2e7aaeb 100644 --- a/src/lib/elm_actionslider.c +++ b/src/lib/elm_actionslider.c @@ -475,6 +475,7 @@ _elm_actionslider_smart_add(Eo *obj, void *_pd, va_list *list EINA_UNUSED) evas_object_rectangle_add(evas_object_evas_get(obj)); evas_object_color_set(priv->drag_button_base, 0, 0, 0, 0); + // dirty support for the backward compatibility edje_object_signal_callback_add (wd->resize_obj, "elm.drag_button,mouse,up", "*", _drag_button_up_cb, obj); @@ -484,6 +485,16 @@ _elm_actionslider_smart_add(Eo *obj, void *_pd, va_list *list EINA_UNUSED) edje_object_signal_callback_add (wd->resize_obj, "elm.drag_button,mouse,move", "*", _drag_button_move_cb, obj); + + edje_object_signal_callback_add + (wd->resize_obj, "elm,action,up,drag_button", "elm", + _drag_button_up_cb, obj); + edje_object_signal_callback_add + (wd->resize_obj, "elm,action,down,drag_button", "elm", + _drag_button_down_cb, obj); + edje_object_signal_callback_add + (wd->resize_obj, "elm,action,move,drag_button", "elm", + _drag_button_move_cb, obj); edje_object_signal_callback_add (wd->resize_obj, "elm,action,down,right", "*", _track_move_cb, obj); --