Re: Glib::Property



On Tue, 2008-08-12 at 20:49 +0400, Larik Ishkulov wrote:
> On Tuesday 12 August 2008 20:02:18 Germán Diago wrote:
> > Hi all. I've got some questions I'd like to be answered:
> >
> >  When implementing new
> > widgets in gtkmm, is there any advantage in using Glib::Property and
> > Glib::PropertyProxy
> > instead of using normal members and get and set? Or it's used for a
> > different thing?
> >
> > Which is the correct way to use Glib::Property and PropertyProxy?
> > Because in the documentation,
> > there are constructors with Glib::Object listed, but Glib::Object
> > constructor is protected.
> > Thank you
> > very much for your time.
> 
> Using Glib::Property will register a property in GObject. So other C programs 
> can use your property.

So, no, I don't think it's very useful.

> Detailed Description of PropertyProxy helped me.
> http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1PropertyProxy.html



-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



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