forked from enlightenment/efl
elm check: Bug fix "changed" signal being sent twice in case of toggle style when check is clicked. Patch by Shilpa Singh <shilpa.shing@samsung.com>, Rajeev Ranjan <rajeev.r@samsung.com>
On Tue, Jan 15, 2013 at 6:02 PM, SHILPA ONKAR SINGH <shilpa.singh@samsung.com> wrote: Hi All, Please find attached bug fix for elm_check - toggle style. This patch prevents "changed" signal being sent twice in case of toggle style when check is clicked. This also fixes few indentation issues in the style. Change description: elm_check: Bug fix "changed" signal being sent twice in case of toggle style when check is clicked. Signed-Off by: Rajeev Ranjan(rajeev.r@samsung.com) Signed-Off by: Shilpa Singh(shilpa.singh@samsung.com) Thanks & Regards Shilpa Singh SVN revision: 82845
This commit is contained in:
parent
14e2cf5ff5
commit
166364bdec
|
@ -902,3 +902,7 @@
|
||||||
2013-01-13 Daniel Juyung Seo (SeoZ)
|
2013-01-13 Daniel Juyung Seo (SeoZ)
|
||||||
|
|
||||||
* Added "highlighted" and "unhighlighted" signals to list, genlist, and gengrid.
|
* Added "highlighted" and "unhighlighted" signals to list, genlist, and gengrid.
|
||||||
|
|
||||||
|
2013-01-16 Shilpa Singh <shilpa.singh@samsung.com>, Rajeev Ranjan <rajeev.r@samsung.com>
|
||||||
|
|
||||||
|
* Fix "changed" signal being sent twice in case of toggle style when check is clicked.
|
||||||
|
|
|
@ -121,6 +121,7 @@ Fixes:
|
||||||
* Fix the usage of the checks in the fileselector test 2.
|
* Fix the usage of the checks in the fileselector test 2.
|
||||||
* Added the min_year and max_year in the standard profile config.
|
* Added the min_year and max_year in the standard profile config.
|
||||||
* Fix omitting signal emission when customized text parts change the text.
|
* Fix omitting signal emission when customized text parts change the text.
|
||||||
|
* Fix "changed" signal being sent twice in case of toggle style when check is clicked.
|
||||||
|
|
||||||
Removals:
|
Removals:
|
||||||
|
|
||||||
|
|
|
@ -576,29 +576,25 @@ group { name: "elm/check/base/toggle";
|
||||||
set_int(is_drag, 0);
|
set_int(is_drag, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
program { name: "drag_end";
|
program { name: "drag_end";
|
||||||
signal: "mouse,up,1";
|
signal: "mouse,up,1";
|
||||||
source: "button";
|
source: "button";
|
||||||
script {
|
script {
|
||||||
new Float:dx, Float:dy;
|
new Float:dx, Float:dy;
|
||||||
get_drag(PART:"button", dx, dy);
|
get_drag(PART:"button", dx, dy);
|
||||||
if (dx > 0.5)
|
if (get_int(is_drag)) {
|
||||||
{
|
if (dx > 0.5)
|
||||||
set_drag(PART:"button", 1.0, 0.0);
|
set_drag(PART:"button", 1.0, 0.0);
|
||||||
|
else
|
||||||
|
set_drag(PART:"button", 0.0, 0.0);
|
||||||
|
if (((get_int(is_rtl) == 1) && (dx <= 0.5)) ||
|
||||||
|
(get_int(is_rtl) == 0) && (dx > 0.5))
|
||||||
|
emit("elm,action,check,on", "");
|
||||||
|
else
|
||||||
|
emit("elm,action,check,off", "");
|
||||||
|
set_int(was_drag, 1);
|
||||||
|
set_int(is_drag, 0);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
set_drag(PART:"button", 0.0, 0.0);
|
|
||||||
}
|
|
||||||
if (((get_int(is_rtl) == 1) && (dx <= 0.5)) ||
|
|
||||||
(get_int(is_rtl) == 0) && (dx > 0.5)) {
|
|
||||||
emit("elm,action,check,on", "");
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
emit("elm,action,check,off", "");
|
|
||||||
}
|
|
||||||
set_int(was_drag, get_int(is_drag));
|
|
||||||
set_int(is_drag, 0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
program { name: "check_on";
|
program { name: "check_on";
|
||||||
|
|
Loading…
Reference in New Issue