Closed Bug 717537 Opened 13 years ago Closed 12 years ago

Support notification message for preferences [simple-prefs]

Categories

(Add-on SDK Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: siavash.askari.nasr, Unassigned)

Details

It would be nice if there was a notification system for displaying dynamic messages related to changes users make in preferences. Or even for showing a static text for preferences' explanation.
(In reply to Wes Kocher (:KWierso) (Jetpack Bugmaster) from comment #1)
> There are preference change listeners provided by simple-prefs (see:
> https://addons.mozilla.org/en-US/developers/docs/sdk/1.4/packages/addon-kit/
> docs/simple-prefs.html#on%28prefName%2C%20listener%29 ). Does that cover
> what you need?

You mean using the listeners and notifications module? Yes, that would do it.

But one more thing, this is not vital but it would be nice if you could add some text before preferences as an explanation or note for some settings.
(In reply to Siavash from comment #2)
> (In reply to Wes Kocher (:KWierso) (Jetpack Bugmaster) from comment #1)
> > There are preference change listeners provided by simple-prefs (see:
> > https://addons.mozilla.org/en-US/developers/docs/sdk/1.4/packages/addon-kit/
> > docs/simple-prefs.html#on%28prefName%2C%20listener%29 ). Does that cover
> > what you need?
> 
> You mean using the listeners and notifications module? Yes, that would do it.

Sounds like this should (or at least could) be done with a third-party module that uses the simple-prefs and notifications modules.  I can't really see this being a common use case so I suggest not making this a part of the SDK.

> But one more thing, this is not vital but it would be nice if you could add
> some text before preferences as an explanation or note for some settings.

There is a 'description' key that you can use which will do what you want, it looks like I forgot to mention this in the docs for simple-prefs though, so I will make a bug for that.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
OS: Linux → All
Hardware: x86_64 → All
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.