[Gtk-sharp-list] Extending Gtk.Window

Pablo Fischer pablo@pablo.com.mx
Thu, 20 Nov 2003 03:22:13 -0600


Hi!

I have a question :).

I have two classes, both are 'extended' from Gtk.Window, however class1
is the parent (father) and the other is the son :) (a little window with
some entries). Im loading each class from a Glade File, but the question
is..

If I dont create a Window object (for class2, the son), why it's so
necesary to create a Gtk.Window object for the main window or my app
will crash every time I try to 'show' it.

Yeah, I have a function called: ShowWindow (that is public) and I close
the window with this.Hide() and try to show it again checking if it's
Visible or not, but doesn't matters cause it crashes.

Here's me code:
http://www.pablo.com.mx/AccountsWindow.cs

Thanks!
-- 
Pablo Fischer Sandoval (pablo [arroba/at] pablo.com.mx)
http://www.pablo.com.mx
http://www.debianmexico.org
GPG FingerTip: 3D49 4CB8 8951 F2CA 8131 AF7C D1B9 1FB9 6B11 810C
Firma URL: http://www.pablo.com.mx/firmagpg.txt