[Monodevelop-patches-list] r912 - trunk/MonoDevelop/src/Main/Base/Gui/Workbench/Layouts
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sat Feb 14 20:08:22 EST 2004
Author: tberman
Date: 2004-02-14 20:08:22 -0500 (Sat, 14 Feb 2004)
New Revision: 912
Modified:
trunk/MonoDevelop/src/Main/Base/Gui/Workbench/Layouts/SdiWorkspaceLayout.cs
Log:
bugfix on title w/ untitled file
Modified: trunk/MonoDevelop/src/Main/Base/Gui/Workbench/Layouts/SdiWorkspaceLayout.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Workbench/Layouts/SdiWorkspaceLayout.cs 2004-02-15 00:34:36 UTC (rev 911)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Workbench/Layouts/SdiWorkspaceLayout.cs 2004-02-15 01:08:22 UTC (rev 912)
@@ -381,7 +381,11 @@
void ActiveMdiChanged(object sender, SwitchPageArgs e)
{
try {
- ((Gtk.Window)WorkbenchSingleton.Workbench).Title = ActiveWorkbenchwindow.ViewContent.ContentName + " - MonoDevelop";
+ if (ActiveWorkbenchwindow.ViewContent.IsUntitled) {
+ ((Gtk.Window)WorkbenchSingleton.Workbench).Title = "MonoDevelop";
+ } else {
+ ((Gtk.Window)WorkbenchSingleton.Workbench).Title = ActiveWorkbenchwindow.ViewContent.ContentName + " - MonoDevelop";
+ }
} catch {
((Gtk.Window)WorkbenchSingleton.Workbench).Title = "MonoDevelop";
}
More information about the Monodevelop-patches-list
mailing list