Re: [gnome-db] getting GnomeDb widgets from Glade



On Tue, 2003-12-02 at 10:54, Marius Andreiana wrote:
> 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" ) ;
An interesting discovery:
Console.WriteLine("WID={0}",gui.GetWidget("db_grid").ToString() );
gives
WID=Gtk.VBox

Glade file is ok:
<widget class="GnomeDbGrid" id="db_grid">

-- 
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]