[MonoDevelop] managed dock
John Luke
john.luke@gmail.com
Sat, 12 Mar 2005 17:20:53 -0500
--=-jz1qdGeoGggXTKGbZ5cC
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
On Sat, 2005-03-12 at 15:38 +0100, Lluis Sanchez wrote:
> I get a compilation error:
>
> ./Gui/Workbench/Layouts/SdiWorkspaceLayout.cs(87) error CS0117:
> `Gdl.DockMaster' does not contain a definition for `DockBar'
>
It looks like that is the older version of the patch, I made it more
compatible with the old API after my first post. I thought I posted the
updated patch already but here it is again. Or maybe you just forgot to
revert the first one somehow.
The only two API changes are now Tablabel to TabLabel and one less arg
needed on DockTo () on Gdl.DockItem.
--=-jz1qdGeoGggXTKGbZ5cC
Content-Disposition: attachment; filename=dock.patch
Content-Type: text/x-patch; name=dock.patch; charset=utf-8
Content-Transfer-Encoding: 7bit
Index: Gui/Workbench/Layouts/SdiWorkspaceLayout.cs
===================================================================
--- Gui/Workbench/Layouts/SdiWorkspaceLayout.cs (revision 2288)
+++ Gui/Workbench/Layouts/SdiWorkspaceLayout.cs (working copy)
@@ -345,7 +345,7 @@
content.Icon,
DockItemBehavior.Normal);
- Gtk.Label label = item.Tablabel as Gtk.Label;
+ Gtk.Label label = item.TabLabel as Gtk.Label;
label.UseMarkup = true;
item.Add (content.Control);
@@ -356,11 +356,11 @@
if (extraPad) {
DockItem ot = dock.GetItemByName ("MonoDevelop.Gui.Pads.OpenTaskView");
if (ot != null && ot.IsAttached) {
- item.DockTo (ot, DockPlacement.Center, 0);
+ item.DockTo (ot, DockPlacement.Center);
}
else {
ot = dock.GetItemByName ("Documents");
- item.DockTo (ot, DockPlacement.Bottom, 0);
+ item.DockTo (ot, DockPlacement.Bottom);
}
}
else
@@ -375,7 +375,7 @@
IPadContent content = (IPadContent) source;
DockItem item = GetDockItem (content);
if (item != null) {
- Gtk.Label label = item.Tablabel as Gtk.Label;
+ Gtk.Label label = item.TabLabel as Gtk.Label;
label.Markup = content.Title;
item.LongName = content.Title;
item.StockId = content.Icon;
Index: Makefile.am
===================================================================
--- Makefile.am (revision 2288)
+++ Makefile.am (working copy)
@@ -6,7 +6,7 @@
/r:$(top_builddir)/build/bin/MonoDevelop.Gui.Utils.dll \
/r:$(top_builddir)/build/bin/MonoDevelop.Gui.Widgets.dll \
/r:System.Data.dll /r:System.Web.Services.dll \
- /r:$(top_builddir)/build/bin/gdl-sharp.dll \
+ /r:$(top_builddir)/build/bin/MonoDevelop.Dock.dll \
/r:Mono.Posix.dll \
$(GTK_SHARP_LIBS) \
$(GNOME_SHARP_LIBS) \
--=-jz1qdGeoGggXTKGbZ5cC--