From 5cabcc01f7e98d43bce29a41668264e48a5b81b7 Mon Sep 17 00:00:00 2001 From: Amit Kamboj Date: Mon, 18 Mar 2013 11:48:53 +0530 Subject: [PATCH] [popup] Added sounds for popup item. Change-Id: I55198be3911b55b4f4d929c7f80a710e381b6c4f --- themes/widgets/popup.edc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/themes/widgets/popup.edc b/themes/widgets/popup.edc index 24b4839..e08103f 100644 --- a/themes/widgets/popup.edc +++ b/themes/widgets/popup.edc @@ -20,6 +20,12 @@ #define POPUP_ITEM_STATE_ENABLED 0 #define POPUP_ITEM_STATE_DISABLED 1 +sounds { + sample { name: "touch_sound" RAW; + source: "button-pressed.wav"; + } +} + /*popup widget specific notify style style*/ group { name: "elm/notify/center/popup"; alias: "elm/notify/center/verticalbuttonstyle"; @@ -1143,9 +1149,13 @@ group { name: "elm/popup/item/default"; } programs { program { name: "item_unclick"; - signal: "mouse,up,1"; + signal: "mouse,clicked,1"; source: "over1"; action: SIGNAL_EMIT "elm,action,click" ""; + after: "touch_snd"; + } + program { name: "touch_snd"; + action: PLAY_SAMPLE "touch_sound" 1.0; } program { name: "disable"; signal: "elm,state,item,disabled"; -- 2.7.4