El vie, 13-06-2008 a las 08:18 -0700, johnmb escribió:
> Now, if I try this, which should be nearer to the desired:-
>
> // Load the interface
>
> Glib::ustring glade_file;
> glade_file = glade_file + working_directory.c_str() +
> "glade/kas_master.glade";
> main_gui = Gnome::Glade::Xml::create(glade_file);
>
> welcome_screen& welcome =
> dynamic_cast<welcome_screen&>(*main_gui->get_widget("welcome_screen"));
>
> Gtk::Main::run(welcome);
>
>
> I get this:-
>
> [EMAIL PROTECTED]:~/kas_master/trunk$ ./fsfm -x -d -c ip -t ip -w `pwd`/ #
> terminate called after throwing an instance of 'std::bad_cast'
> what(): St8bad_cast
> Aborted
>
I think that what you want fits the "Using derived widgets" tutorial
chapter, doesn't it?
http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch23s04.html
--
Enrique García Álvarez
www.eldemonionegro.com
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list