* Fix potential problem which would cause resource leak.
* Fix omitting signal emission when customized text parts change the text.
* Fix the bug which the callbacks of the sub-object are added even if the sub-object is added the parent object.
+ * Fix "changed" signal being sent twice in case of toggle style when check is clicked.
Changes since Elementary 1.7.4:
-------------------------
set_int(is_drag, 0);
}
}
- program { name: "drag_end";
+ program { name: "drag_end";
signal: "mouse,up,1";
source: "button";
script {
new Float:dx, Float:dy;
get_drag(PART:"button", dx, dy);
- if (dx > 0.5)
- {
- 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", "");
+ if (get_int(is_drag)) {
+ if (dx > 0.5)
+ 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);
}
- set_int(was_drag, get_int(is_drag));
- set_int(is_drag, 0);
}
}
program { name: "check_on";