actionslider: Fixed mouse movement issue.

@fix

Summary:
The name of the signal in edc (elm,right,mouse,down) was
         different from c (elm.right,mouse,down). After changed
         the signal name, mouse event is working as expected.

Test Plan: elementary_test -to actionslider (click right left & center by mouse)

Reviewers: seoz, singh.amitesh

Differential Revision: https://phab.enlightenment.org/D618
This commit is contained in:
prashant 2014-03-10 23:24:37 +09:00 committed by Daniel Juyung Seo
parent 9be42b5657
commit deab06f4bd
2 changed files with 8 additions and 8 deletions

View File

@ -231,15 +231,15 @@ group { name: "elm/actionslider/base/default";
}
program {
signal: "mouse,down,1*"; source: "elm.text.right";
action: SIGNAL_EMIT "elm,right,mouse,down" "elm";
action: SIGNAL_EMIT "elm,action,down,right" "elm";
}
program {
signal: "mouse,down,1*"; source: "elm.text.left";
action: SIGNAL_EMIT "elm,left,mouse,down" "elm";
action: SIGNAL_EMIT "elm,action,down,left" "elm";
}
program {
signal: "mouse,down,1*"; source: "elm.text.center";
action: SIGNAL_EMIT "elm,center,mouse,down" "elm";
action: SIGNAL_EMIT "elm,action,down,center" "elm";
}
program {
signal: "elm,state,disabled"; source: "elm";

View File

@ -361,7 +361,7 @@ _track_move_cb(void *data,
ELM_ACTIONSLIDER_DATA_GET(obj, sd);
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
if (!strcmp(emission, "elm.right,mouse,down"))
if (!strcmp(emission, "elm,action,down,right"))
{
if (sd->final_position == 0.0)
{
@ -383,7 +383,7 @@ _track_move_cb(void *data,
sd->final_position = 1.0;
}
}
else if (!strcmp(emission, "elm.center,mouse,down"))
else if (!strcmp(emission, "elm,action,down,center"))
{
if (sd->enabled_position & ELM_ACTIONSLIDER_CENTER)
{
@ -485,13 +485,13 @@ _elm_actionslider_smart_add(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
(wd->resize_obj, "elm.drag_button,mouse,move", "*",
_drag_button_move_cb, obj);
edje_object_signal_callback_add
(wd->resize_obj, "elm,right,mouse,down", "*",
(wd->resize_obj, "elm,action,down,right", "*",
_track_move_cb, obj);
edje_object_signal_callback_add
(wd->resize_obj, "elm,left,mouse,down", "*",
(wd->resize_obj, "elm,action,down,left", "*",
_track_move_cb, obj);
edje_object_signal_callback_add
(wd->resize_obj, "elm,center,mouse,down", "*",
(wd->resize_obj, "elm,action,down,center", "*",
_track_move_cb, obj);
if (!elm_layout_theme_set