[Mono-devel-list] glade-sharp and GnomeAbout Widget

Daniele Bellucci belch at linux.it
Fri Nov 26 19:25:29 EST 2004


On Fri, Nov 26, 2004 at 07:14:27PM -0500, Miguel de Icaza wrote:
|Hello,
|
|> whoops, yes you're right since the widget name is 'about1'
|> i replaced with:
|> 
|> About about = (About)gxml["about1"];
|> 
|> but when i launch the app i get the following:
|> Unhandled Exception: System.InvalidCastException: Cannot cast from source type to destination type.
|
|That means that the type of `about1' is not Gnome.About, its something
|else.
|
|Try doing:
|
|	Console.WriteLine ("Type is: " + gxml ["about1"].GetType ());

Type is: Gtk.ImageMenuItem

.. looks strange, since i create a GnomeAbout widget from glade-2..

here is the entry of the the generated .glade file
<widget class="GtkMenuItem" id="about1">

.. looks like a glade-2 bug?



More information about the Mono-devel-list mailing list