GNOME Bugzilla – Bug 321325
Plugin-specific preferences
Last modified: 2006-11-02 18:02:18 UTC
It would be great to allow plugins to provide their own preferences page.
How do you see that in the UI? When a plugin is activated he adds a new entry in the preference menu on the left? Or we add a button "Properties" (under "Open" and "Remove") that opens a dialog with plugin's properties? I think that i prefer the first solution.
I was thinking the first one
I'm working on this. In my current design, i have to "gobjectize" the PreferencePluginsPage (to be able to emmit a signal when a new plugin is loaded). Any objection with that?
sounds fine to me.
done. I'm not a GObject specialist so review and feedback would be welcome. I continue my work on this bug.
OK, i just commited my patch to implement this feature. I also add a preferences page for the notification plugin. Testing and feedback are most than welcome. 2006-11-02 Guillaume Desmottes <cass@skynet.be> A src/fe-gnome/preferences-page.c: A src/fe-gnome/preferences-page.h: * src/fe-gnome/preferences-page-dcc.c: * src/fe-gnome/preferences-page-dcc.h: * src/fe-gnome/preferences-page-irc.c: * src/fe-gnome/preferences-page-irc.h: * src/fe-gnome/preferences-page-colors.c: * src/fe-gnome/preferences-page-colors.h: * src/fe-gnome/preferences-page-networks.c: * src/fe-gnome/preferences-page-spellcheck.c: * src/fe-gnome/preferences-page-networks.h: * src/fe-gnome/preferences-page-spellcheck.h: * src/fe-gnome/preferences-page-effects.c: * src/fe-gnome/preferences-page-effects.h * src/fe-gnome/Makefile.am: - GObjectize preferences pages. - Make them inherit from PreferencesPage. * src/fe-gnome/preferences-page-plugins.c: * src/fe-gnome/preferences-page-plugins.h: * src/fe-gnome/preferences-dialog.c: * src/fe-gnome/preferences-dialog.h: - Add the ability to plugins to have their own preferences page. (#321325) A plugins/notification/preferences-notification.glade: A plugins/notification/preferences-page-plugin-notification.h: A plugins/notification/preferences-page-plugin-notification.c: * plugins/notification/TODO: * plugins/notification/notification.c: * plugins/notification/Makefile.am: * NEWS: * po/POTFILES.in: - Add a preference page to configure the level of notification. Fixed in the development version. The fix will be available in the next major release. Thank you for your bug report.