Re: using gsettings / gconf in extensions




On Wed, May 25, 2011 at 8:14 AM, Tim Cuthbertson <tim gfxmonk net> wrote:
Hi all,

I'm planning to add some gsettings or gconf integration to Erick
Pérez's workspace indicator extension
(https://github.com/erick2red/shell-extensions) to allow the user to
configure the label text format. So I have a couple of questions:

- Is gsettings or gconf preferred for extension code? I have the vague
impression that gsettings is newer and shinier, but not much more than
that.

GSettings is what we prefer nowadays: it's part of GLib/Gio 3, instead of being a separate library.
 
- Is there a designated (or suggested) namespace or prefix that gnome
shell extensions should place their conf keys within, or shall I just
make something up? Should I put it inside
org.gnome.shell.extensions.<extension-id> or something?

org.gnome.shell.extensions.<extension-id> isn't a bad idea at all.
 
Cheers,
- Tim.
_______________________________________________
gnome-shell-list mailing list
gnome-shell-list gnome org
http://mail.gnome.org/mailman/listinfo/gnome-shell-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]