[Monodevelop-patches-list] r1003 - trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/BrowserNode
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Mon Feb 23 14:24:54 EST 2004
Author: tberman
Date: 2004-02-23 14:24:54 -0500 (Mon, 23 Feb 2004)
New Revision: 1003
Modified:
trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/BrowserNode/ProjectBrowserNode.cs
Log:
removing projects from combines now working.
Modified: trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/BrowserNode/ProjectBrowserNode.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/BrowserNode/ProjectBrowserNode.cs 2004-02-23 12:54:22 UTC (rev 1002)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/BrowserNode/ProjectBrowserNode.cs 2004-02-23 19:24:54 UTC (rev 1003)
@@ -107,17 +107,13 @@
CombineEntry removeEntry = null;
StringParserService stringParserService = (StringParserService)ServiceManager.Services.GetService(typeof(StringParserService));
- /*int ret = new SharpMessageBox(resourceService.GetString("ProjectComponent.RemoveProject.Title"),
- stringParserService.Parse(resourceService.GetString("ProjectComponent.RemoveProject.Question"), new string[,] { {"COMBINE", cmb.Name}, {"PROJECT", project.Name}}),
- resourceService.GetString("Global.RemoveButtonText"),
- resourceService.GetString("Global.CancelButtonText")
- ).ShowMessageBox();*/
- Console.WriteLine ("Unported Dialog in ProjectBrowserNode.cs");
- int ret = 1;
- if (ret == 1 || ret == -1) {
+ Gtk.MessageDialog dialog = new Gtk.MessageDialog ((Gtk.Window)WorkbenchSingleton.Workbench, Gtk.DialogFlags.DestroyWithParent, Gtk.MessageType.Question, Gtk.ButtonsType.OkCancel, stringParserService.Parse(resourceService.GetString("ProjectComponent.RemoveProject.Question"), new string[,] { {"COMBINE", cmb.Name}, {"PROJECT", project.Name}}));
+ if (dialog.Run() != (int)Gtk.ResponseType.Ok) {
+ dialog.Destroy ();
return false;
}
-
+ dialog.Destroy ();
+
// remove combineentry
foreach (CombineEntry entry in cmb.Entries) {
if (entry is ProjectCombineEntry) {
More information about the Monodevelop-patches-list
mailing list