Reputation: 73
I simply tried this.
GtkWidget* oldwnd = new GtkWidget();
Gtk::Widget wnd(*oldwnd);
But it does not compile.
Can anybody tell me how to type cast the types in gtk+ to the corresponding types in gtkmm?
Upvotes: 1
Views: 2425
Reputation: 120239
Perhaps Gtk::Widget* wnd = Glib::wrap(oldwnd)
?
Gtk::Widget* wrap (GtkWidget* object, bool take_copy=false);
Upvotes: 2