[Gtk-sharp-list] How do I keep main window from closing?

bdubu bwb at fireflysoftware.com
Tue Jul 21 13:08:11 EDT 2009



Adam Tauno Williams wrote:
> 
> Try
> 
> [GLib.ConnectBefore]
> protected void OnDeleteEvent (object sender, DeleteEventArgs a)
> {
> 
> then interrupt the callback chain by setting a.RetVal = false; [ or is
> it a.RetVal = true; ]  one of those.  Those should make your callback
> first and stop the default callback from executing.
> 
> I think.
> 

Thanks for responding.  Ok, I tried this but unfortunately the window still
closes.  : (  
-- 
View this message in context: http://www.nabble.com/How-do-I-keep-main-window-from-closing--tp24578770p24591759.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.



More information about the Gtk-sharp-list mailing list