[Pkg-mozext-commits] [perspectives-extension] 33/44: Perspectives - Add functions to get and set Int prefs

David Prévot taffit at moszumanska.debian.org
Sun Jun 26 04:59:20 UTC 2016


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

taffit pushed a commit to branch master
in repository perspectives-extension.

commit 33f7e716c839080b8f4a549cbedff8bd3be9dbcf
Author: Dave Schaefer <dave.schaefer at gmail.com>
Date:   Tue Jun 14 21:44:04 2016 -0700

    Perspectives - Add functions to get and set Int prefs
---
 plugin/chrome/content/notaries.js | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/plugin/chrome/content/notaries.js b/plugin/chrome/content/notaries.js
index 8107cd3..db4bee8 100644
--- a/plugin/chrome/content/notaries.js
+++ b/plugin/chrome/content/notaries.js
@@ -140,6 +140,17 @@ var Perspectives = {
 		return;
 	},
 
+	// return the value of an int preference
+	getIntPref: function(prefName) {
+		return Perspectives.getRootPrefs().getIntPref(prefName);
+	},
+
+	// set the value of an int preference
+	setIntPref: function(prefName, newVal) {
+		Perspectives.getRootPrefs().setIntPref(prefName, newVal);
+		return;
+	},
+
 	getOverrideService: function() {
 
 		if(Perspectives.overrideService === null) {

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



More information about the Pkg-mozext-commits mailing list