[Pkg-mozext-commits] [nostalgy] 101/235: *** empty log message ***

David Prévot taffit at alioth.debian.org
Tue Oct 8 20:41:54 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository nostalgy.

commit d7970aad33283cda848feed9cfdd28070549db6e
Author: frisch <frisch at 56b81dcf-5a2f-0410-9db0-014be2e416ff>
Date:   Wed May 30 21:03:22 2007 +0000

    *** empty log message ***
    
    
    git-svn-id: http://nostalgy.googlecode.com/svn/trunk@101 56b81dcf-5a2f-0410-9db0-014be2e416ff
---
 content/edit_prefs.js |    4 ++--
 content/folders.js    |    4 ++--
 content/misc.js       |    5 +++++
 3 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/content/edit_prefs.js b/content/edit_prefs.js
index d343db2..17b94aa 100644
--- a/content/edit_prefs.js
+++ b/content/edit_prefs.js
@@ -215,7 +215,7 @@ function DoMoveDown(idx1,idx2) {
 }
 
 function onAcceptChanges() {
-  var prefs = NostalgyPrefService();
+  var prefs = NostalgyPrefBranch();
   prefs.setCharPref("extensions.nostalgy.rules", MkPrefStr());
 
   for (var n in nostalgy_completion_options)
@@ -308,7 +308,7 @@ function onNostalgyLoad() {
   gList = gEBI("rules");
   folder_select = gEBI("folderselect");
 
-  var prefs = NostalgyPrefService();
+  var prefs = NostalgyPrefBranch();
   try {
    var r = NostalgyJSONEval(prefs.getCharPref("extensions.nostalgy.rules"));
    var i;
diff --git a/content/folders.js b/content/folders.js
index 30ffa87..a0da291 100644
--- a/content/folders.js
+++ b/content/folders.js
@@ -16,14 +16,14 @@ var nostalgy_recent_folders_max_size = 5;
 // TODO: make that customizable
 
 function NostalgySaveRecentFolder(recent) {
-  NostalgyPrefService().
+  NostalgyPrefBranch().
     setCharPref("extensions.nostalgy.recent_folders",
 		recent.toSource());
 }
 
 function NostalgyInstallRecentFolders() {
   var s = "";
-  try { s = NostalgyPrefService().
+  try { s = NostalgyPrefBranch().
 	  getCharPref("extensions.nostalgy.recent_folders"); }
   catch (ex) { return; }
   var a = NostalgyJSONEval(s);
diff --git a/content/misc.js b/content/misc.js
index 52df72e..7f90ae3 100644
--- a/content/misc.js
+++ b/content/misc.js
@@ -5,6 +5,11 @@ function NostalgyPrefService() {
     .getService(Components.interfaces.nsIPrefService);
 }
 
+function NostalgyPrefBranch() {
+  return Components.classes["@mozilla.org/preferences-service;1"]
+    .getService(Components.interfaces.nsIPrefBranch);
+}
+
 function NostalgyDebug(aText)
 {
   var csClass = Components.classes['@mozilla.org/consoleservice;1'];

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/nostalgy.git



More information about the Pkg-mozext-commits mailing list