[mono/monodevelop] 0eba7a1f: [Ide] Added base class for implementing xwt pads.

Mike Krüger ([email protected]) <[email protected]>
Newsgroups gmane.comp.gnome.mono.patches
Message-ID <00000141c9d3084b-38f1e25a-c7c4-4af5-938d-1b86a869565d-000000@email.amazonses.com>
   Branch: refs/heads/master
     Home: https://github.com/mono/monodevelop
  Compare: https://github.com/mono/monodevelop/compare/870b5c830057...0eba7a1f1f8b

   Commit: 0eba7a1f1f8b3b2d8521c1dc9f09102a3de7550e
   Author: Mike Krüger <[email protected]> (mkrueger)
     Date: 2013-10-18 04:27:28 GMT
      URL: https://github.com/mono/monodevelop/commit/0eba7a1f1f8b3b2d8521c1dc9f09102a3de7550e

[Ide] Added base class for implementing xwt pads.

Changed paths:
  M main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/AbstractPadContent.cs
  M main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/AbstractViewContent.cs

Modified: main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/AbstractPadContent.cs
===================================================================
@@ -29,6 +29,7 @@
 using System.Collections.Generic;
 using System.Text;
 using MonoDevelop.Core;
+using Xwt;
 
 namespace MonoDevelop.Ide.Gui
 {
@@ -89,4 +90,18 @@ public virtual void Dispose ()
 
 		#endregion
 	}
+
+	public abstract class AbstractXwtPadContent : AbstractPadContent
+	{
+		public sealed override Gtk.Widget Control {
+			get {
+				return (Gtk.Widget)Toolkit.CurrentEngine.GetNativeWidget (Widget);
+			}
+		}
+
+		public abstract Xwt.Widget Widget {
+			get;
+		}
+	}
+
 }

Modified: main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/AbstractViewContent.cs
===================================================================
@@ -155,7 +155,7 @@ public virtual void OnContentNameChanged (EventArgs e)
 
 	public abstract class AbstractXwtViewContent :AbstractViewContent
 	{
-		public override Gtk.Widget Control {
+		public sealed override Gtk.Widget Control {
 			get {
 				return (Gtk.Widget)Toolkit.CurrentEngine.GetNativeWidget (Widget);
 			}
_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.