[gnome-db] getting GnomeDb widgets from Glade
- From: Marius Andreiana <mandreiana rdslink ro>
- To: gnome-db <gnome-db-list gnome org>
- Subject: [gnome-db] getting GnomeDb widgets from Glade
- Date: Tue, 02 Dec 2003 10:54:27 +0200
Hi
In C#, I'm trying to get a reference to gnomedb widgets from Glade:
Glade.XML gui;
GnomeDb.Grid db_grid;
Gtk.VBox vbox_main;
gui = new Glade.XML( null, "../gui/test.glade", "application", null );
gui.Autoconnect( this );
db_grid = (GnomeDb.Grid)gui.GetWidget( "db_grid" ) ;
//this works
vbox_main = (Gtk.VBox)gui.GetWidget( "vbox_main" ) ;
Error is:
Unhandled Exception: System.InvalidCastException: Cannot cast from
source type to destination type
How can I use gnomedb widgets in glade like the rest?
Thanks
--
Marius Andreiana
Galuna - Solutii Linux in Romania
http://www.galuna.ro
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]