Author: toshok
Date: 2007-10-17 13:15:07 -0400 (Wed, 17 Oct 2007)
New Revision: 87702

Modified:
   trunk/moon/plugin/ChangeLog
   trunk/moon/plugin/plugin.cpp
Log:
2007-10-17  Chris Toshok  <[EMAIL PROTECTED]>

        * plugin.cpp (PluginXamlLoader::TryLoad): use ->Attach instead of
        surface_attach, and add a comment about element->unref().



Modified: trunk/moon/plugin/ChangeLog
===================================================================
--- trunk/moon/plugin/ChangeLog 2007-10-17 16:57:58 UTC (rev 87701)
+++ trunk/moon/plugin/ChangeLog 2007-10-17 17:15:07 UTC (rev 87702)
@@ -1,3 +1,8 @@
+2007-10-17  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * plugin.cpp (PluginXamlLoader::TryLoad): use ->Attach instead of
+       surface_attach, and add a comment about element->unref().
+
 2007-10-16  Jb Evain  <[EMAIL PROTECTED]>
 
        * plugin.cpp: add plugin_instance_get_browser_runtime_settings.

Modified: trunk/moon/plugin/plugin.cpp
===================================================================
--- trunk/moon/plugin/plugin.cpp        2007-10-17 16:57:58 UTC (rev 87701)
+++ trunk/moon/plugin/plugin.cpp        2007-10-17 17:15:07 UTC (rev 87702)
@@ -1010,8 +1010,10 @@
        
        printf ("PluginXamlLoader::TryLoad () succeeded.\n");
 
-       surface_attach (GetSurface (), (Canvas*) element);
+       GetSurface ()->Attach ((Canvas*) element);
        
+       // xaml_create_from_* passed us a ref which we don't need to
+       // keep.
        element->unref ();
        
        return NULL;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to