[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  Web www.spinics.net

Re: Creating custom GTK+ widget using C++ -- Ctor/Dtor not called



On 02/15/2012 11:35 PM, Agnel Kurian wrote:
contained object were not being called. I had assumed that merely
compiling as C++ would make it work... but now I realize it need not be
so when allocated via g_object_new.

Note that you can always call placement new in your gobject constructor and explicitly invoke the C++ destructor in the gobject destructor. That way, even when created via g_object_new, your class will be correctly constructed in the C++ sense. Google "placement new" for more details.
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[GIMP Users]     [Yosemite News]    [Yosemite Photos]    [Gimp's Home]     [Steve's Art]

Add to Google Powered by Linux