[Monodevelop-patches-list] r2163 - in trunk/MonoDevelop/Core/src/MonoDevelop.Base: . Commands
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Tue Jan 25 16:19:41 EST 2005
Author: tberman
Date: 2005-01-25 16:19:41 -0500 (Tue, 25 Jan 2005)
New Revision: 2163
Modified:
trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog
trunk/MonoDevelop/Core/src/MonoDevelop.Base/Commands/MenuItemBuilders.cs
Log:
* Commands/MenuItemBuilders.cs: Use ShowNotification to properly show
the open contents menu.
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog 2005-01-25 21:15:02 UTC (rev 2162)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog 2005-01-25 21:19:41 UTC (rev 2163)
@@ -5,6 +5,8 @@
* Gui/Components/SdMenuCheckBox.cs: Use markup instead of text, this
will allow the view menu item builder to show things properly.
* Gui/IWorkbenchWindow.cs: Add ShowNotification get; set;
+ * Commands/MenuItemBuilders.cs: Use ShowNotification to properly show
+ the open contents menu.
2005-01-25 Lluis Sanchez Gual <lluis at novell.com>
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Base/Commands/MenuItemBuilders.cs
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/Commands/MenuItemBuilders.cs 2005-01-25 21:15:02 UTC (rev 2162)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/Commands/MenuItemBuilders.cs 2005-01-25 21:19:41 UTC (rev 2163)
@@ -234,7 +234,12 @@
for (int i = 0; i < contentCount; ++i) {
IViewContent content = (IViewContent)WorkbenchSingleton.Workbench.ViewContentCollection[i];
- MyMenuItem item = new MyMenuItem(content.WorkbenchWindow.Title);
+ MyMenuItem item = null;
+ if (content.WorkbenchWindow.ShowNotification) {
+ item = new MyMenuItem("<span foreground=\"blue\">" + content.WorkbenchWindow.Title + "</span>");
+ } else {
+ item = new MyMenuItem (content.WorkbenchWindow.Title);
+ }
item.Tag = content.WorkbenchWindow;
if (WorkbenchSingleton.Workbench.ActiveWorkbenchWindow == content.WorkbenchWindow) {
item.Active = true;
More information about the Monodevelop-patches-list
mailing list