Home | History | Annotate | Download | only in mutebutton
      1 /*
      2     Copyright (C) 2008,2009 INdT - Instituto Nokia de Tecnologia
      3     Copyright (C) 2009,2010 ProFUSION embedded systems
      4     Copyright (C) 2011 Samsung Electronics
      5 
      6     This file is free software; you can redistribute it and/or
      7     modify it under the terms of the GNU Library General Public
      8     License as published by the Free Software Foundation; either
      9     version 2 of the License, or (at your option) any later version.
     10 
     11     This file is distributed in the hope that it will be useful,
     12     but WITHOUT ANY WARRANTY; without even the implied warranty of
     13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     14     Library General Public License for more details.
     15 
     16     You should have received a copy of the GNU Library General Public License
     17     along with this library; see the file COPYING.LIB.  If not, write to
     18     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
     19     Boston, MA 02110-1301, USA.
     20 */
     21 
     22    group {
     23       name: "webkit/widget/mediacontrol/mute_button";
     24 
     25       images {
     26          image: "widget/mediacontrol/mutebutton/mutebutton.png" COMP;
     27          image: "widget/mediacontrol/mutebutton/unmutebutton.png" COMP;
     28       }
     29 
     30       parts {
     31          part {
     32             name: "mute_button";
     33             type: IMAGE;
     34             description { state: "default" 0.0;
     35                min: 25 25;
     36             }
     37             description { state: "mute" 0.0;
     38                inherit: "default" 0.0;
     39                image.normal: "widget/mediacontrol/mutebutton/mutebutton.png";
     40             }
     41             description { state: "sound" 0.0;
     42                inherit: "default" 0.0;
     43                image.normal: "widget/mediacontrol/mutebutton/unmutebutton.png";
     44             }
     45          }
     46       }
     47 
     48       programs {
     49          program {
     50              signal: "mute";
     51              action: STATE_SET "mute" 0.0;
     52              target: "mute_button";
     53          }
     54          program {
     55              signal: "sound";
     56              action: STATE_SET "sound" 0.0;
     57              target: "mute_button";
     58          }
     59       }
     60    }
     61