[Monodevelop-patches-list] r2305 - trunk/MonoDevelop/Unused/Gdl

John Luke <jluke@cfl.rr.com> jluke at mono-cvs.ximian.com
Mon Mar 7 14:53:53 EST 2005


Author: jluke
Date: 2005-03-07 14:53:52 -0500 (Mon, 07 Mar 2005)
New Revision: 2305

Modified:
   trunk/MonoDevelop/Unused/Gdl/DockItem.cs
   trunk/MonoDevelop/Unused/Gdl/DockLayout.cs
   trunk/MonoDevelop/Unused/Gdl/TODO
Log:
make sure TabLabel is not null and set the Markup
on creation of the DockItem


Modified: trunk/MonoDevelop/Unused/Gdl/DockItem.cs
===================================================================
--- trunk/MonoDevelop/Unused/Gdl/DockItem.cs	2005-03-07 16:00:32 UTC (rev 2304)
+++ trunk/MonoDevelop/Unused/Gdl/DockItem.cs	2005-03-07 19:53:52 UTC (rev 2305)
@@ -61,6 +61,7 @@
 			Name = name;
 			LongName = longName;
 			Behavior = behavior;
+			((Label) TabLabel).Markup = longName;
 		}
 		
 		public DockItem (string name, string longName, string stockid,
@@ -248,6 +249,8 @@
 		
 		public Widget TabLabel {
 			get {
+				if (tabLabel == null)
+					tabLabel = new Label ();
 				return tabLabel;
 			}
 			set {

Modified: trunk/MonoDevelop/Unused/Gdl/DockLayout.cs
===================================================================
--- trunk/MonoDevelop/Unused/Gdl/DockLayout.cs	2005-03-07 16:00:32 UTC (rev 2304)
+++ trunk/MonoDevelop/Unused/Gdl/DockLayout.cs	2005-03-07 19:53:52 UTC (rev 2305)
@@ -118,6 +118,11 @@
 			doc.WriteTo (writer);
 		}
 
+		public string[] GetLayouts (bool includeDefault)
+		{
+			return Layouts.ToArray (typeof (string)) as string[];
+		}
+
 		public bool LoadFromFile (string file)
 		{
 			if (doc != null) {

Modified: trunk/MonoDevelop/Unused/Gdl/TODO
===================================================================
--- trunk/MonoDevelop/Unused/Gdl/TODO	2005-03-07 16:00:32 UTC (rev 2304)
+++ trunk/MonoDevelop/Unused/Gdl/TODO	2005-03-07 19:53:52 UTC (rev 2305)
@@ -5,3 +5,5 @@
  - improve de-serialization (also use ExportLayoutAttribute?)
  - fix notebook.Position after
  - placeholders in layout store/restore
+ - occasional redraw issues:
+	http://www.xs4all.nl/~jeroen/screenshots/Screenshot-test.png




More information about the Monodevelop-patches-list mailing list