I would like to define a new subclass of some gtkmm type, implementing interface of underlying GTK+ object. Then, i want to compile it into some kind of dll and use in pure C code (GTK+, no gtkmm) through this interface. Is it possible?
The followings are required to use gtkmm widget in GTK+:
- implement the desired custom widget in gtkmm
- create a library from the widget for Glade
- design the user interface containing the custom widget with Glade
- declare the C interface for the application written in GTK+
- build the user interface from XML with
GtkBuilder
Details can be found in my blog post.
来源:https://stackoverflow.com/questions/10727979/is-it-possible-to-define-gtk-type-using-gtkmm