[Monodevelop-patches-list] r1976 - in trunk/MonoDevelop/Core/src/Main/Base: . Services
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Thu Oct 7 01:47:15 EDT 2004
Author: tberman
Date: 2004-10-07 01:47:15 -0400 (Thu, 07 Oct 2004)
New Revision: 1976
Modified:
trunk/MonoDevelop/Core/src/Main/Base/ChangeLog
trunk/MonoDevelop/Core/src/Main/Base/Services/MessageService.cs
Log:
fix bug with the show message thread transparent code. closes bug #61674
Modified: trunk/MonoDevelop/Core/src/Main/Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/Main/Base/ChangeLog 2004-10-07 02:51:03 UTC (rev 1975)
+++ trunk/MonoDevelop/Core/src/Main/Base/ChangeLog 2004-10-07 05:47:15 UTC (rev 1976)
@@ -1,3 +1,9 @@
+2004-10-07 Todd Berman <tberman at off.net>
+
+ * Servers/MessageService.cs: Fix a little (but important) bug with
+ ShowMessage not properly working. Now you can actually *close* the
+ window. Pretty good.
+
2004-10-06 Todd Berman <tberman at off.net>
* Services/ParserService/CodeCompletionDatabase.cs: Check to see if
Modified: trunk/MonoDevelop/Core/src/Main/Base/Services/MessageService.cs
===================================================================
--- trunk/MonoDevelop/Core/src/Main/Base/Services/MessageService.cs 2004-10-07 02:51:03 UTC (rev 1975)
+++ trunk/MonoDevelop/Core/src/Main/Base/Services/MessageService.cs 2004-10-07 05:47:15 UTC (rev 1976)
@@ -163,15 +163,14 @@
void realShowMessage (object state)
{
string message = state as string;
- using (Gtk.MessageDialog md = new Gtk.MessageDialog ((Gtk.Window) WorkbenchSingleton.Workbench, Gtk.DialogFlags.Modal | Gtk.DialogFlags.DestroyWithParent, Gtk.MessageType.Info, Gtk.ButtonsType.Ok, message)) {
- md.Response += new Gtk.ResponseHandler(OnMessageResponse);
- md.ShowAll ();
- }
+ Gtk.MessageDialog md = new Gtk.MessageDialog ((Gtk.Window) WorkbenchSingleton.Workbench, Gtk.DialogFlags.Modal | Gtk.DialogFlags.DestroyWithParent, Gtk.MessageType.Info, Gtk.ButtonsType.Ok, message);
+ md.Response += new Gtk.ResponseHandler(OnMessageResponse);
+ md.ShowAll ();
}
void OnMessageResponse (object o, Gtk.ResponseArgs e)
{
- ((Gtk.Dialog)o).Hide ();
+ ((Gtk.MessageDialog)o).Hide ();
}
// call this method to show a dialog and get a response value
More information about the Monodevelop-patches-list
mailing list