[MonoDevelop] GTK MessageDialog close button requires double click to close :S

Connel connelhooley at googlemail.com
Tue Apr 6 10:30:07 EDT 2010


I have two GTK MessageDialogs in my program however both of them require a
double click on their window boarder close buttons to actually close them.
The close button on the MessageDialogs themselves works fine. 

Please help, below is the code for the two GTK MessageDialogs in my program:

		if (fchDestination.CurrentFolder == fchTarget.CurrentFolder) {
			MessageDialog msdSame = new MessageDialog(this, DialogFlags.Modal,
MessageType.Error, ButtonsType.Close, "Destination directory cannot be the
same as the target directory");
			msdSame.Title="Error";
			if ((ResponseType) msdSame.Run() == ResponseType.Close) {
				msdSame.Destroy();
			}
			return;
		}
		
		if (fchTarget.CurrentFolder.StartsWith(fchDestination.CurrentFolder)) {
			MessageDialog msdContains = new MessageDialog(this, DialogFlags.Modal,
MessageType.Error, ButtonsType.Close, "{0}" + "/n" + "cannot be synced with"
+ "/n" + "{1}" + "/n" + "because it a root
folder",fchDestination.CurrentFolder, fchTarget.CurrentFolder);
			msdContains.Title="Error";
			if ((ResponseType) msdContains.Run() == ResponseType.Close) {
				msdContains.Destroy();
			}
-- 
View this message in context: http://n4.nabble.com/GTK-MessageDialog-close-button-requires-double-click-to-close-S-tp1752892p1752892.html
Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.


More information about the Monodevelop-list mailing list