home *** CD-ROM | disk | FTP | other *** search
/ Freelog 117 / FreelogNo117-OctobreNovembre2013.iso / Theme / 8GadgetPack / 8GadgetPackSetup.msi / Gadgets.7z / Gadgets / Volume_Control.gadget / settings.js < prev    next >
Text File  |  2010-08-13  |  1KB  |  46 lines

  1. /////////////////////////////////////////////////////////////////////////////////////
  2. //                                                                                 //
  3. //  Volume Control Gadget 1.2 by Orbmu2k ⌐ 2007                                    //
  4. //                                                                                 //
  5. //  Copyright ⌐ 2007 Orbmu2k.  All rights reserved.                                //
  6. //                                                                                 //
  7. //  http://blog.orbmu2k.de                                                         //
  8. //                                                                                 //
  9. //  Email: sidebargadget@orbmu2k.de                                                //
  10. //                                                                                 //
  11. /////////////////////////////////////////////////////////////////////////////////////
  12.  
  13. System.Gadget.onSettingsClosing = SettingsClosing;
  14.  
  15. function onLoad()
  16. {
  17.     initSettings();
  18. }
  19.  
  20. function onUnload()
  21. {
  22.  
  23. }
  24.  
  25. function SettingsClosing(event)
  26. {
  27.     if (event.closeAction == event.Action.commit) 
  28.         saveSettings();
  29.     event.cancel = false;
  30. }
  31.  
  32. function initSettings()
  33. {
  34.     loadSettings();
  35. }
  36.  
  37. function loadSettings()
  38. {
  39.     background.value = System.Gadget.Settings.read("background");        
  40. }
  41.  
  42. function saveSettings()
  43. {
  44.     System.Gadget.Settings.write("background", background.value);
  45. }
  46.