2009/7/21 bdubu <[email protected]>: > > I have a TextView on my main window. I don't want to be able to close the > main window if the text in this TextView has been modified but not yet saved > to disk. I realize I can check the control's Buffer.Modified property and > that this should likely be done in the main windows's OnDeleteEvent handler > but I don't know how to make this work. I took a WAG and tried this... >
Your problem is that RetVal set to true prevents closing, not the other way around. When you leave the default false, it will close as normally. _______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
