I have a custom GTK+ widget which I am compiling in a C++ file (instead of C). Most of the code is the C subset of C++. The application seems to run fine. (Right now it merely displays a top-level window with the widget in it.) However, I have included a destructor in the widget structure and noticed that the destructor is never called.
- What should I do (short of using gtkmm) in order to ensure that the destructor is called?
- What are the other consequences I should be aware of when implementing a GTK+ widget in C++?