Hello. This piece of code doesn't compile:
Glib::RefPtr<Gtk::Builder> b = Gtk::Builder::create_from_file("prueba.ui"); Gtk::Window * w; Gtk::TreeView * view; Glib::RefPtr<Glib::Object> liststore; b->get_widget("window1", w); //Glib::RefPtr<Glib::Object>::cast_static<Gtk::ListStore>(b->get_object("liststore")); Glib::RefPtr<Glib::Object> o = b->get_object("liststore"); //This line is the one that does not compile Glib::RefPtr<Glib::Object>::cast_static<Gtk::ListStore>(o); I want to cast to a liststore an object in the last line, but I can't. Which is the correct way to do it? _______________________________________________ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list