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. Detailed Description of PropertyProxy helped me. http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1PropertyProxy.html -- Best regarsd, Larik Ishkulov _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
