[Monodevelop-patches-list] r1004 - 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:29:15 EST 2004
Author: tberman
Date: 2004-02-23 14:29:15 -0500 (Mon, 23 Feb 2004)
New Revision: 1004
Modified:
trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/BrowserNode/CombineBrowserNode.cs
Log:
fixing another context menu command.
Modified: trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/BrowserNode/CombineBrowserNode.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/BrowserNode/CombineBrowserNode.cs 2004-02-23 19:24:54 UTC (rev 1003)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/BrowserNode/CombineBrowserNode.cs 2004-02-23 19:29:15 UTC (rev 1004)
@@ -95,16 +95,13 @@
CombineBrowserNode cmbNode = (CombineBrowserNode)Parent;
StringParserService stringParserService = (StringParserService)ServiceManager.Services.GetService(typeof(StringParserService));
- /*int ret = new SharpMessageBox(resourceService.GetString("ProjectComponent.RemoveCombine.Title"),
- stringParserService.Parse(resourceService.GetString("ProjectComponent.RemoveCombine.Question"), new string[,] { {"COMBINE", combine.Name}, {"PARENTCOMBINE", cmbNode.Combine.Name} }),
- resourceService.GetString("Global.RemoveButtonText"),
- resourceService.GetString("Global.CancelButtonText")).ShowMessageBox();
- */
- Console.WriteLine ("unported dialog in CombineBrowserNode.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.RemoveCombine.Question"), new string[,] { {"COMBINE", combine.Name}, {"PARENTCOMBINE", cmbNode.Combine.Name}}));
+
+ if (dialog.Run() != (int)Gtk.ResponseType.Ok) {
+ dialog.Destroy ();
return false;
}
+ dialog.Destroy ();
CombineEntry removeEntry = null;
More information about the Monodevelop-patches-list
mailing list