Author: lluis
Date: 2007-05-17 10:10:00 -0400 (Thu, 17 May 2007)
New Revision: 77559
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Codons/PadCodon.cs
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui/SdiWorkspaceLayout.cs
Log:
* MonoDevelop.Ide.Gui/SdiWorkspaceLayout.cs: A pad may already be
initialized but not yet added to the dock. So, a better way to know
when a pad needs to be added to the dock is just to check if the
dock already has a child or not.
* MonoDevelop.Ide.Codons/PadCodon.cs: Removed duplicate property.
Modified: trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog 2007-05-17
13:55:29 UTC (rev 77558)
+++ trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog 2007-05-17
14:10:00 UTC (rev 77559)
@@ -1,5 +1,13 @@
2007-05-17 Lluis Sanchez Gual <[EMAIL PROTECTED]>
+ * MonoDevelop.Ide.Gui/SdiWorkspaceLayout.cs: A pad may already be
+ initialized but not yet added to the dock. So, a better way to know
+ when a pad needs to be added to the dock is just to check if the
+ dock already has a child or not.
+ * MonoDevelop.Ide.Codons/PadCodon.cs: Removed duplicate property.
+
+2007-05-17 Lluis Sanchez Gual <[EMAIL PROTECTED]>
+
* MonoDevelop.Ide.Gui/SdiWorkspaceLayout.cs: Workaround to what seems
to be a gtk/gtk# bug.
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Codons/PadCodon.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Codons/PadCodon.cs
2007-05-17 13:55:29 UTC (rev 77558)
+++
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Codons/PadCodon.cs
2007-05-17 14:10:00 UTC (rev 77559)
@@ -66,7 +66,7 @@
string[] contexts;
- public IPadContent Pad {
+ public IPadContent PadContent {
get {
if (content == null)
content = CreatePad ();
@@ -107,18 +107,9 @@
get { return contexts; }
}
- IPadContent padContent = null;
- public IPadContent PadContent {
- get {
- if (!Initialized) {
- padContent = CreatePad ();
- }
- return padContent;
- }
- }
public bool Initialized {
get {
- return padContent != null;
+ return content != null;
}
}
@@ -129,7 +120,7 @@
public PadCodon (IPadContent content, string id, string label,
string defaultPlacement, string icon)
{
this.id = id;
- this.padContent = content;
+ this.content = content;
this.label = label;
this.defaultPlacement = defaultPlacement;
this.icon = icon;
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui/SdiWorkspaceLayout.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui/SdiWorkspaceLayout.cs
2007-05-17 13:55:29 UTC (rev 77558)
+++
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui/SdiWorkspaceLayout.cs
2007-05-17 14:10:00 UTC (rev 77559)
@@ -411,9 +411,10 @@
originItem = null;
}
+
void CreatePadContent (bool force, PadCodon padCodon, PadWindow
window, DockItem item)
{
- if (force || !padCodon.Initialized) {
+ if (force || item.Child == null) {
IPadContent newContent = padCodon.PadContent;
newContent.Initialize (window);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches