Re: Wrapping GSettings in glibmm
- From: José Alburquerque <jaalburquerque cox net>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Wrapping GSettings in glibmm
- Date: Thu, 17 Jun 2010 18:26:32 -0400
On Mon, 2010-06-14 at 14:19 -0400, José Alburquerque wrote:
> On Mon, 2010-06-14 at 10:30 -0400, José Alburquerque wrote:
> > On Mon, 2010-06-14 at 13:56 +0200, Murray Cumming wrote:
> > > On Tue, 2010-06-08 at 17:39 -0400, José Alburquerque wrote:
> > > > I've been thinking about wrapping GVariant and I have some ideas I'd
> > > > like to try out. I hope to submit a patch for review soon.
> > >
> > > That's very helpful. I haven't looked at it yet. Can we wrap it like
> > > GValue?
> > >
> > > Maybe not. I see that it is reference-counted, though maybe not derived
> > > from GObject, and I see no copy function. I wonder if we can avoid
> > > having to use it with RefPtr.
> >
> > My first thought was to wrap it like GValue. I'm still hoping it's
> > possible.
>
> I don't think it's possible to wrap it like GValue because if a GVariant
> member is kept in the wrapper as is done in Glib::ValueBase it would not
> be possible to copy the member across wrappers (as you already pointed
> out).
>
> > I think it might be possible to not use RefPtr if we can wrap it like
> > GValue.
>
> Avoiding having to use RefPtr might still be possible though.
There is a preliminary patch now available:
https://bugzilla.gnome.org/show_bug.cgi?id=621941
--
José
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]