Re: preserving user configuration



On Fri, 2006-07-07 at 18:16 -0400, Matthias Clasen wrote:
> On 7/7/06, Raphael Slinckx <raphael slinckx net> wrote:
> >
> > Yes, the implementation is lagging a bit.
> > The interesting thing about it, is that there is no other way to
> > preserve settings from gtik than to walk the gconf key
> > /apps/panel/applets, look for directories names applet_*, look into each
> > directory if the bonobo OAFIID correspond to gtik's one, then extracts
> > information from gtik gconf schema and import it. Note that there is
> > apparently no way to know if you have multiple applet_* matching, which
> > one is the real, corresponding to the running instance of gtik (or maybe
> > you have more than one instance and then you're even more screwed).
> >
> 
> I agree it sounds mildly painful.

I was thinking about this. We replace one applet with the other using
the .server file, so it seems to me that the panel may have allocated it
the same preferences tree inside GConf (I need to actually confirm
this). In this case, we can easily check to see if we have any
preferences for Gtik inside this section of the tree.

I'll try and test this now.

--d

-- 
Davyd Madeley

http://www.davyd.id.au/
08B0 341A 0B9B 08BB 2118  C060 2EDD BB4F 5191 6CDA




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