Re: [Re: gconf_client_construct]



Murray Cumming <murrayc usa net> writes:
> Havoc Pennington <hp redhat com> wrote:
> > I would expose this to C++ by having: 
> >   
> >  class Client 
> >  { 
> >   public:
> >    static Client *get_default();
> >    static Client *get_for_engine ();
> >    
> >   private:
> >    Client ();
> >  };
> 
> That's exactly what I've ended up doing, but without any default constructor
> at all. Sorry for wasting your time.
> 

No problem, I appreciate people bringing up issues.

Owen points out that GConfClient is a bit broken in that the clients
you can get are essentially global variables, but some of the mutable
features of the client (notably error handling) are
code-section-specific. Blah. (I guess I was thinking gnome-libs would
set the error handler rather than client code, but it's not made
clear...)

Havoc




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