From aa1b6bace20e966649dcd65657cb8fd9d2829fea Mon Sep 17 00:00:00 2001 From: Amit Kamboj Date: Tue, 30 Apr 2013 12:32:42 +0530 Subject: [PATCH] [Searchbar] Added sound playing support when clicked. Change-Id: I09d7b45bcd5290f0b805cd2a753a203e14304616 --- themes/widgets/layout.edc | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/themes/widgets/layout.edc b/themes/widgets/layout.edc index e6f06df..84d901f 100644 --- a/themes/widgets/layout.edc +++ b/themes/widgets/layout.edc @@ -1096,6 +1096,13 @@ group { name: "elm/layout/editfield/title"; } } +sounds { + sample { + name: "touch_sound" AS_IS; + source: "S_Touch_30ms.wav"; + } +} + group { name: "elm/layout/searchbar/default"; images { image: "00_edit_field_clear.png" COMP; @@ -1619,6 +1626,11 @@ group { name: "elm/layout/searchbar/default"; signal: "mouse,clicked,1"; source: "eraser"; action: SIGNAL_EMIT "elm,eraser,clicked" "elm"; + after: "eraser_sound"; + } + program { + name: "eraser_sound"; + action: PLAY_SAMPLE "touch_sound" 1.0; } program { name: "bg_clicked"; @@ -1626,6 +1638,12 @@ group { name: "elm/layout/searchbar/default"; source: "search_textfield"; action: SIGNAL_EMIT "elm,bg,clicked" "elm"; } + program { + name: "sound_play"; + signal: "mouse,clicked,1"; + source: "elm.text"; + action: PLAY_SAMPLE "touch_sound" 1.0; + } program { name: "mouse_click"; signal: "mouse,clicked,1"; source: "search_icon"; @@ -2270,6 +2288,17 @@ group { name: "elm/layout/searchbar/cancel_button"; signal: "mouse,clicked,1"; source: "eraser"; action: SIGNAL_EMIT "elm,eraser,clicked" "elm"; + after: "eraser_sound"; + } + program { + name: "eraser_sound"; + action: PLAY_SAMPLE "touch_sound" 1.0; + } + program { + name: "sound_play"; + signal: "mouse,clicked,1"; + source: "elm.text"; + action: PLAY_SAMPLE "touch_sound" 1.0; } program { name: "bg_clicked"; -- 2.7.4