[popup] Added sounds for popup item.
authorAmit Kamboj <amit.kamboj@samsung.com>
Mon, 18 Mar 2013 06:18:53 +0000 (11:48 +0530)
committerSungho Kwak <sungho1.kwak@samsung.com>
Thu, 21 Mar 2013 08:17:22 +0000 (17:17 +0900)
Change-Id: I55198be3911b55b4f4d929c7f80a710e381b6c4f

themes/widgets/popup.edc

index 24b4839..e08103f 100644 (file)
 #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";