Re: [gnome-db] getting GnomeDb widgets from Glade
- From: Rodrigo Moya <rodrigo gnome-db org>
- To: Marius Andreiana <mandreiana rdslink ro>
- Cc: gnome-db <gnome-db-list gnome org>
- Subject: Re: [gnome-db] getting GnomeDb widgets from Glade
- Date: Wed, 03 Dec 2003 11:48:13 +0100
On Tue, 2003-12-02 at 23:01, Marius Andreiana wrote:
> On Tue, 2003-12-02 at 14:08, Rodrigo Moya wrote:
> > > 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?
> > >
> > yes, just make sure you select GNOME-DB support in your Glade project.
> > That should work.
> It does work, they are displayed, but when trying to access them from
> the application like in the above example it crashes with that error.
> Regular Gtk Widgets work.
>
do you get any warning when running it on a terminal?
There might be some problem with our libglade-gnomedb library, which I
think libglade loads to use the gnome-db widgets. Please run it on a
terminal and see if there is any message.
cheers
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]