[Monodevelop-patches-list] r1303 - in trunk/MonoDevelop/src/Main/Base: . Commands/ProjectBrowserCommands
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Wed Mar 31 00:39:28 EST 2004
Author: jluke
Date: 2004-03-31 00:39:28 -0500 (Wed, 31 Mar 2004)
New Revision: 1303
Modified:
trunk/MonoDevelop/src/Main/Base/ChangeLog
trunk/MonoDevelop/src/Main/Base/Commands/ProjectBrowserCommands/FolderNodeCommands.cs
Log:
* Commands/ProjectBrowserCommands/FolderNodeCommands.cs:
use stock buttons and put the MessageDialog in a using {}
Modified: trunk/MonoDevelop/src/Main/Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/Main/Base/ChangeLog 2004-03-31 05:38:08 UTC (rev 1302)
+++ trunk/MonoDevelop/src/Main/Base/ChangeLog 2004-03-31 05:39:28 UTC (rev 1303)
@@ -1,3 +1,8 @@
+2004-03-31 John Luke <jluke at cfl.rr.com>
+
+ * Commands/ProjectBrowserCommands/FolderNodeCommands.cs:
+ use stock buttons and put the MessageDialog in a using {}
+
2004-03-30 Todd Berman <tberman at sevenl.net>
* Gui/Pads/ClassScout/ClassScout.cs: stop using Gdk.Threads.Enter and
Modified: trunk/MonoDevelop/src/Main/Base/Commands/ProjectBrowserCommands/FolderNodeCommands.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Commands/ProjectBrowserCommands/FolderNodeCommands.cs 2004-03-31 05:38:08 UTC (rev 1302)
+++ trunk/MonoDevelop/src/Main/Base/Commands/ProjectBrowserCommands/FolderNodeCommands.cs 2004-03-31 05:39:28 UTC (rev 1303)
@@ -54,22 +54,23 @@
if (file.StartsWith(node.Project.BaseDirectory)) {
ProjectBrowserView.MoveCopyFile (file, node, true, true);
} else {
- MessageDialog md = new MessageDialog (
+ using (MessageDialog md = new MessageDialog (
(Window) WorkbenchSingleton.Workbench,
DialogFlags.Modal | DialogFlags.DestroyWithParent,
MessageType.Question, ButtonsType.None,
- "The file is outside the project directory, what should I do?");
- md.AddButton ("Copy", 1);
- md.AddButton ("Move", 2);
- md.AddButton ("Cancel", ResponseType.Cancel);
+ "The file is outside the project directory, what should I do?")) {
+ md.AddButton (Gtk.Stock.Copy, 1);
+ md.AddButton ("_Move", 2);
+ md.AddButton (Gtk.Stock.Cancel, ResponseType.Cancel);
- int ret = md.Run ();
- md.Destroy ();
+ int ret = md.Run ();
+ md.Hide ();
- if (ret < 0)
- return;
+ if (ret < 0)
+ return;
- ProjectBrowserView.MoveCopyFile (file, node, ret == 2, false);
+ ProjectBrowserView.MoveCopyFile (file, node, ret == 2, false);
+ }
}
}
} finally {
More information about the Monodevelop-patches-list
mailing list