[Gtk-sharp-list] Gtk.Appbar problems

Jamin P. Gray jamin@pubcrawler.org
Tue, 13 Jan 2004 19:37:00 -0600


According to the docs the Gtk.Appbar has two properties I'm interested
in: Progress and Status.  The Progress returns a Gtk.ProgressBar but the
Status returns Gtk.Widget which is supposed to be the Statusbar.  My
first question is shouldn't the Status property return a Gtk.Statusbar? 
My second question is why does my app compile but crash at runtime with
this error when I try to cast the widget to a Gtk.Statusbar:

Unhandled Exception: System.InvalidCastException: Cannot cast from
source type to destination type
in [0x002c1] (at /home/jamin/Projects/WoodPusher/src/WoodPusher.cs:176)
Chess.WoodPusher:.ctor (string[])

-- 
name:   Jamin Philip Gray
email:  jamin@pubcrawler.org
icq:    1361499
aim:    jamingray47
yahoo:  jamin47
web:    http://pubcrawler.org

The world's most amazing feats were accomplished by people not
smart enough to realize they were impossible.