<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,9 @@
+2009-11-10  Rolf Bjarne Kvinge  &lt;RKvinge@novell.com&gt;
+
+	* GeneratedPInvokes.cs: Regenerated.
+
+	r: sde
+
 2009-11-09  Chris Toshok  &lt;toshok@ximian.com&gt;
 
 	* NativeDependencyObjectHelper.cs (CreateObject): add mappings for</diff>
      <filename>class/System.Windows/Mono/ChangeLog</filename>
    </modified>
    <modified>
      <diff>@@ -1364,8 +1364,8 @@ namespace Mono {
 		public extern static IntPtr moon_window_gtk_get_native_widget (IntPtr instance);
 
 		[DllImport (&quot;moon&quot;)]
-		// MoonWindowGtk *moon_window_gtk_new (bool fullscreen, int w, int h, MoonWindow *parent);
-		public extern static IntPtr moon_window_gtk_new ([MarshalAs (UnmanagedType.U1)] bool fullscreen, int w, int h, IntPtr parent);
+		// MoonWindowGtk *moon_window_gtk_new (bool fullscreen, int w, int h, MoonWindow *parent, Surface *surface);
+		public extern static IntPtr moon_window_gtk_new ([MarshalAs (UnmanagedType.U1)] bool fullscreen, int w, int h, IntPtr parent, IntPtr surface);
 
 		[DllImport (&quot;moon&quot;)]
 		// MouseButtonEventArgs *mouse_button_event_args_new ();</diff>
      <filename>class/System.Windows/Mono/GeneratedPInvokes.cs</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,9 @@
+2009-11-10  Rolf Bjarne Kvinge  &lt;RKvinge@novell.com&gt;
+
+	* Moonlight.Gtk/MoonlightHost.cs: Updated according to api changes.
+
+	r: sde
+
 2009-10-28  Larry Ewing  &lt;lewing@novell.com&gt;
 
 	* moonlight-gtk.pc.in (Libs): add System.Windows.Browser.dll to libs.</diff>
      <filename>gtk/ChangeLog</filename>
    </modified>
    <modified>
      <diff>@@ -67,7 +67,7 @@ namespace Moonlight.Gtk
 		public MoonlightHost ()
 		{
 			Mono.Xaml.XamlLoader.AllowMultipleSurfacesPerDomain = true;
-			window = NativeMethods.moon_window_gtk_new (false, 0, 0, IntPtr.Zero);
+			window = NativeMethods.moon_window_gtk_new (false, 0, 0, IntPtr.Zero, IntPtr.Zero);
 			surface = NativeMethods.surface_new (window);
 			Raw = NativeMethods.moon_window_gtk_get_native_widget (window);
 </diff>
      <filename>gtk/Moonlight.Gtk/MoonlightHost.cs</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,16 @@
+2009-11-10  Rolf Bjarne Kvinge  &lt;RKvinge@novell.com&gt;
+
+	* window.h:
+	* window-gtk.h|cpp: Add a surface ctor parameter.
+
+	* runtime.cpp: Pass the surface as a parameter to the ctor instead of
+	setting it afterwards, since the window ctor will end up needing the
+	surface.
+
+	* cbinding.h|cpp: Regenerated.
+
+	r: sde
+
 2009-11-09  Andreia Gaita  &lt;avidigal@novell.com&gt;
 
 	* dependencyproperty.cpp: if the unresolved Target name is not found</diff>
      <filename>src/ChangeLog</filename>
    </modified>
    <modified>
      <diff>@@ -3319,9 +3319,9 @@ moon_window_gtk_get_native_widget (MoonWindowGtk *instance)
 
 
 MoonWindowGtk *
-moon_window_gtk_new (bool fullscreen, int w, int h, MoonWindow *parent)
+moon_window_gtk_new (bool fullscreen, int w, int h, MoonWindow *parent, Surface *surface)
 {
-	return new MoonWindowGtk (fullscreen, w, h, parent);
+	return new MoonWindowGtk (fullscreen, w, h, parent, surface);
 }
 
 </diff>
      <filename>src/cbinding.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -2090,7 +2090,7 @@ void moon_window_set_transparent (MoonWindow *instance, bool flag);
 void *moon_window_gtk_get_native_widget (MoonWindowGtk *instance);
 
 /* @GeneratePInvoke */
-MoonWindowGtk *moon_window_gtk_new (bool fullscreen, int w, int h, MoonWindow *parent);
+MoonWindowGtk *moon_window_gtk_new (bool fullscreen, int w, int h, MoonWindow *parent, Surface *surface);
 
 /**
  * MouseButtonEventArgs</diff>
      <filename>src/cbinding.h</filename>
    </modified>
    <modified>
      <diff>@@ -941,8 +941,7 @@ Surface::UpdateFullScreen (bool value)
 		return;
 
 	if (value) {
-		fullscreen_window = new MoonWindowGtk (true, -1, -1, normal_window);
-		fullscreen_window-&gt;SetSurface (this);
+		fullscreen_window = new MoonWindowGtk (true, -1, -1, normal_window, this);
 
 		active_window = fullscreen_window;
 		</diff>
      <filename>src/runtime.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -15,8 +15,8 @@
 #include &quot;deployment.h&quot;
 #include &quot;timemanager.h&quot;
 
-MoonWindowGtk::MoonWindowGtk (bool fullscreen, int w, int h, MoonWindow *parent)
-	: MoonWindow (w, h)
+MoonWindowGtk::MoonWindowGtk (bool fullscreen, int w, int h, MoonWindow *parent, Surface *surface)
+	: MoonWindow (w, h, surface)
 {
 	this-&gt;fullscreen = fullscreen;
 </diff>
      <filename>src/window-gtk.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -24,7 +24,7 @@
 class MoonWindowGtk : public MoonWindow {
 public:
 	/* @GenerateCBinding,GeneratePInvoke */
-	MoonWindowGtk (bool fullscreen, int w = -1, int h = -1, MoonWindow* parent = NULL);
+	MoonWindowGtk (bool fullscreen, int w = -1, int h = -1, MoonWindow* parent = NULL, Surface *surface = NULL);
 
 	virtual ~MoonWindowGtk ();
 </diff>
      <filename>src/window-gtk.h</filename>
    </modified>
    <modified>
      <diff>@@ -33,7 +33,7 @@ class Surface;
 /* @Namespace=System.Windows */
 class MoonWindow {
  public:
-	MoonWindow (int w, int h) : width(w), height(h), surface(NULL), transparent(false) { }
+	MoonWindow (int w, int h, Surface *s = NULL) : width(w), height(h), surface(s), transparent(false) { }
 
 	virtual ~MoonWindow () { }
 </diff>
      <filename>src/window.h</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a4a8fa5728f3d2b3acea8943e0c3ae50e91d9591</id>
    </parent>
  </parents>
  <author>
    <name>rolf</name>
    <email>rolf@e3ebcda4-bce8-0310-ba0a-eca2169e7518</email>
  </author>
  <url>http://github.com/myabc/moonlight/commit/2f5362910221498f9377eb1baa3328e626c304a3</url>
  <id>2f5362910221498f9377eb1baa3328e626c304a3</id>
  <committed-date>2009-11-10T02:09:14-08:00</committed-date>
  <authored-date>2009-11-10T02:09:14-08:00</authored-date>
  <message>In class/System.Windows/Mono:
2009-11-10  Rolf Bjarne Kvinge  &lt;RKvinge@novell.com&gt;

	* GeneratedPInvokes.cs: Regenerated.

	r: sde

In gtk:
2009-11-10  Rolf Bjarne Kvinge  &lt;RKvinge@novell.com&gt;

	* Moonlight.Gtk/MoonlightHost.cs: Updated according to api changes.

	r: sde

In src:
2009-11-10  Rolf Bjarne Kvinge  &lt;RKvinge@novell.com&gt;

	* window.h:
	* window-gtk.h|cpp: Add a surface ctor parameter.

	* runtime.cpp: Pass the surface as a parameter to the ctor instead of
	setting it afterwards, since the window ctor will end up needing the
	surface.

	* cbinding.h|cpp: Regenerated.

	r: sde

git-svn-id: svn://anonsvn.mono-project.com/source/trunk/moon@145822 e3ebcda4-bce8-0310-ba0a-eca2169e7518</message>
  <tree>0cb2634284aab7c6da5d65f16cc940f5faa949f7</tree>
  <committer>
    <name>rolf</name>
    <email>rolf@e3ebcda4-bce8-0310-ba0a-eca2169e7518</email>
  </committer>
</commit>
