Re: storing 'config sets' in gconf

Joerg Barfurth <[email protected]>
Newsgroups gmane.comp.gnome.lib.gconf
Message-ID <[email protected]>
Hi,

Venkatakrishnan Kannan schrieb:
> Hi Cyrille,
>   Thanks for the reply. 
>   I was actually wondering if the schema itself
> provides for such dynamic paths. Now it is clear that
> we have to do it without the schema. That clarifies.

You can't really define such dynamic keys (or groups of such keys) in 
the schema. But you can define a prototypical group of settings (e.g. 
all the settings required for one account) in the schema. It should even 
be possible to assign these schema keys to no real data key initially. 
When you insert an account you can link all the new settings to the 
corresponding schema keys. Settings for multiple accounts would share 
one set of schema entries. Of course this will cause some amount of 
extra work to support actions like moving an account to a diffent key.

> You mentioned that there could be other issues in
> maintaining such account info. It would be helpful if
> you could let me know your concern.
> 

None I can initially think of. YMMV

Ciao, Jörg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.