[Monodevelop-patches-list] r1431 - in trunk/MonoDevelop/src/Main/Base: . Gui Gui/Workbench/Layouts
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sat Apr 10 01:12:21 EDT 2004
Author: tberman
Date: 2004-04-10 01:12:21 -0400 (Sat, 10 Apr 2004)
New Revision: 1431
Modified:
trunk/MonoDevelop/src/Main/Base/ChangeLog
trunk/MonoDevelop/src/Main/Base/Gui/IWorkbenchLayout.cs
trunk/MonoDevelop/src/Main/Base/Gui/Workbench/Layouts/SdiWorkspaceLayout.cs
trunk/MonoDevelop/src/Main/Base/Gui/Workbench/Layouts/SdiWorkspaceWindow.cs
Log:
fix bug
Modified: trunk/MonoDevelop/src/Main/Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/Main/Base/ChangeLog 2004-04-10 04:43:09 UTC (rev 1430)
+++ trunk/MonoDevelop/src/Main/Base/ChangeLog 2004-04-10 05:12:21 UTC (rev 1431)
@@ -1,3 +1,10 @@
+2004-04-10 Todd Berman <tberman at sevenl.net>
+
+ * Gui/Workbench/Layouts/SdiWorkspaceLayout.cs:
+ * Gui/Workbench/Layouts/SdiWorkspaceWindow.cs:
+ * Gui/IWorkbenchLayout.cs:
+ fix bug #56769.
+
2004-04-09 John Luke <jluke at cfl.rr.com>
* Commands/AutostartCommands: remove dead code
Modified: trunk/MonoDevelop/src/Main/Base/Gui/IWorkbenchLayout.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/IWorkbenchLayout.cs 2004-04-10 04:43:09 UTC (rev 1430)
+++ trunk/MonoDevelop/src/Main/Base/Gui/IWorkbenchLayout.cs 2004-04-10 05:12:21 UTC (rev 1431)
@@ -99,5 +99,7 @@
PadContentCollection PadContentCollection {
get;
}
+
+ void ActiveMdiChanged(object sender, Gtk.SwitchPageArgs e);
}
}
Modified: trunk/MonoDevelop/src/Main/Base/Gui/Workbench/Layouts/SdiWorkspaceLayout.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Workbench/Layouts/SdiWorkspaceLayout.cs 2004-04-10 04:43:09 UTC (rev 1430)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Workbench/Layouts/SdiWorkspaceLayout.cs 2004-04-10 05:12:21 UTC (rev 1431)
@@ -444,19 +444,23 @@
tabControl.ShowTabs = false;
}
- void ActiveMdiChanged(object sender, SwitchPageArgs e)
+ public void ActiveMdiChanged(object sender, SwitchPageArgs e)
{
try {
if (ActiveWorkbenchwindow.ViewContent.IsUntitled) {
((Gtk.Window)WorkbenchSingleton.Workbench).Title = "MonoDevelop";
} else {
+ string post = String.Empty;
+ if (ActiveWorkbenchwindow.ViewContent.IsDirty) {
+ post = "*";
+ }
if (ActiveWorkbenchwindow.ViewContent.HasProject)
{
- ((Gtk.Window)WorkbenchSingleton.Workbench).Title = ActiveWorkbenchwindow.ViewContent.ProjectName + " - " + ActiveWorkbenchwindow.ViewContent.PathRelativeToProject + " - MonoDevelop";
+ ((Gtk.Window)WorkbenchSingleton.Workbench).Title = ActiveWorkbenchwindow.ViewContent.ProjectName + " - " + ActiveWorkbenchwindow.ViewContent.PathRelativeToProject + post + " - MonoDevelop";
}
else
{
- ((Gtk.Window)WorkbenchSingleton.Workbench).Title = ActiveWorkbenchwindow.ViewContent.ContentName + " - MonoDevelop";
+ ((Gtk.Window)WorkbenchSingleton.Workbench).Title = ActiveWorkbenchwindow.ViewContent.ContentName + post + " - MonoDevelop";
}
}
} catch {
Modified: trunk/MonoDevelop/src/Main/Base/Gui/Workbench/Layouts/SdiWorkspaceWindow.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Workbench/Layouts/SdiWorkspaceWindow.cs 2004-04-10 04:43:09 UTC (rev 1430)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Workbench/Layouts/SdiWorkspaceWindow.cs 2004-04-10 05:12:21 UTC (rev 1431)
@@ -192,6 +192,7 @@
if (newTitle != Title) {
Title = newTitle;
}
+ WorkbenchSingleton.Workbench.WorkbenchLayout.ActiveMdiChanged (null, null);
}
public void DetachContent()
More information about the Monodevelop-patches-list
mailing list