[Gtk-sharp-list] Suppressing response in a dialog

Vladimir Giszpenc vladimir.giszpenc at gmail.com
Thu Jun 12 16:24:09 EDT 2008


After reading on this list about the Dispose pattern as applied to
Gtk.Dialogs, I followed the lead of others.  My problem is that in my
OK button I call a
bool Validate() function.  When this function returns false, I want to
alert the user to what is wrong and NOT CLOSE.  I return out of my
Click event, but someone else is generating a ResponseType.OK

How can I suppress the Response signal that is now leading to my
dialog getting closed?  The .Netish thing to do would be a class that
inherits eventArgs on which I set some cancel = true.  I know this not
to exist.

Any ideas?



More information about the Gtk-sharp-list mailing list