signal: "mouse,clicked,1"; \
source: "events1"; \
action: SIGNAL_EMIT "elm,action,check,toggle" ""; \
+ after: "touch_sound"; \
+ } \
+ program { name: "touch_sound"; \
+ action: PLAY_SAMPLE "touch_sound" 1.0; \
} \
program { name: "bg_normal"; \
signal: "mouse,up,1"; \
signal: "mouse,clicked,1"; \
source: "events1"; \
action: SIGNAL_EMIT "elm,action,check,toggle" ""; \
+ after: "touch_sound"; \
+ } \
+ program { name: "touch_sound"; \
+ action: PLAY_SAMPLE "touch_sound" 1.0; \
} \
program { name: "check_on"; \
signal: "elm,state,check,on"; \
signal: "mouse,clicked,1";
source: "events1";
action: SIGNAL_EMIT "elm,action,check,toggle" "";
+ after: "touch_sound";
+ }
+ program { name: "touch_sound";
+ action: PLAY_SAMPLE "touch_sound" 1.0;
}
program { name: "bg_normal";
signal: "mouse,up,1";
relative: 1.0 0.0;
offset: 1 1;
}
- rel2 {
+ rel2 {
to_x: "bg";
relative: 1.0 1.0;
offset: 2 -2;
set_drag(PART:"button", 1.0, 0.0);
if (((get_int(is_rtl) == 1) && (dx <= 0.5)) ||
(get_int(is_rtl) == 0) && (dx > 0.5)) {
- if (get_int(check_on))
+ if (get_int(check_on)) {
emit("elm,action,check,off", "");
+ emit("elm,action,touch,sound", "");
+ }
}
else {
- if (!get_int(check_on))
+ if (!get_int(check_on)) {
emit("elm,action,check,on", "");
+ emit("elm,action,touch,sound", "");
+ }
}
}
}
}
+ program { name: "touch_sound";
+ signal: "elm,action,touch,sound";
+ source: "";
+ action: PLAY_SAMPLE "touch_sound" 1.0;
+ }
program {
signal: "drag";
source: "button";
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)) {
- if (!get_int(check_on))
+ if (!get_int(check_on)) {
emit("elm,action,check,on", "");
+ emit("elm,action,touch,sound", "");
+ }
}
else {
- if (get_int(check_on))
+ if (get_int(check_on)) {
emit("elm,action,check,off", "");
+ emit("elm,action,touch,sound", "");
+ }
}
set_int(was_drag, get_int(is_drag));
set_int(is_drag, 0);
} \
programs { \
program { name: "click"; \
- signal: "mouse,up,1"; \
+ signal: "mouse,clicked,1"; \
source: "events"; \
action: SIGNAL_EMIT "elm,action,check,toggle" ""; \
+ after: "touch_sound"; \
+ } \
+ program { name: "touch_sound"; \
+ action: PLAY_SAMPLE "touch_sound" 1.0; \
} \
program { name: "check_on"; \
signal: "elm,state,check,on"; \
}
program { name: "toggle";
action: SIGNAL_EMIT "elm,action,check,toggle" "";
+ after: "touch_sound";
+ }
+ program { name: "touch_sound";
+ action: PLAY_SAMPLE "touch_sound" 1.0;
}
program { name: "unfocused";
signal: "elm,action,unfocus";
}
}
program { name: "click";
- signal: "mouse,up,1";
+ signal: "mouse,clicked,1";
source: "events";
action: SIGNAL_EMIT "elm,action,check,toggle" "";
+ after: "touch_sound";
+ }
+ program { name: "touch_sound";
+ action: PLAY_SAMPLE "touch_sound" 1.0;
after: "bg_normal";
}
program { name: "bg_normal";