Re: Wrapping GtkStatubar in a class

I don't understand what you want to do, and why you want to do it.
Do you want to wrap a GtkStatusbar in a Gtk::Widget, one of Gtk::Statusbar's base classes? What do you hope to gain by doing that? Normally a GtkStatusbar is wrapped in a Gtk::Statusbar, when you create a Gtk::Statusbar. In what respect is GtkStatusbar better than Gtk::Statusbar? If GtkStatusbar has methods that are missing in Gtk::Statusbar, you can get a pointer to the wrapped GtkStatusbar by calling Gtk::Statusbar::gobj(), and call gtk_statusbar_xxx().


Den 2015-05-05 04:56, Tim O'Neil skrev:
I'd like to include a GtkStatusbar in my gtkmm app, I like it better than Gtk::Statusbar. But I'm lost on how to do this. I tried Glib::wrap but no examples I can find appear to be the right approach. Can some one with more gtkmm experience show me an example of wrapping GtkStatusbar into a Gtk::Widget?

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]