[Gtk-sharp-list] Loading Gtk.Combo from .glade file

Anset anset@anset.org
Tue, 7 Sep 2004 18:57:01 +0200


Hi,

Isn't the name you are requesting (comboboxentry1) only the Entry widget
part of the combobox?
The combobox itself is a larger widget that is built around it (inclusing
the popup menu and the arrow button).
Check your gui in glade... (Use the widgettree)
You probably want "combobox1" or something like that.

Hope this helps

wkr,

Anset.


----- Original Message ----- 
From: "Maxim Telegin" <aiker@rambler.ru>
To: <gtk-sharp-list@lists.ximian.com>
Sent: Tuesday, September 07, 2004 6:27 PM
Subject: [Gtk-sharp-list] Loading Gtk.Combo from .glade file


>
> Hi, all!
>
> I'm trying to get Gtk.Combo widget defined in .glade file. I'm using
> next code:
>
> -----
> Glade.Xml gxml = new Glade.XML (null, "gladesharp1.glade", "window1",
> null);
> object obj = gxml.GetWidget("comboboxentry1");
> ------
>
> But object returned by last line of code has Gtk.Bin type witch I
> cannot cast to Gtk.Combo. How I can get the Gtk.Combo widget?
>
> Thanks.
>
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>