Author: everaldo
Date: 2007-06-09 04:30:59 -0400 (Sat, 09 Jun 2007)
New Revision: 79038

Modified:
   trunk/moon/plugin/ChangeLog
   trunk/moon/plugin/moon-plugin.cpp
Log:
        [Xaml support]

        * moon-plugin.cpp: 
        - Read xaml file from src tag and display contents.
        - Disable demo box, now we have a better demo under xaml file.

2007-06-09  Everaldo Canuto  <[EMAIL PROTECTED]>



Modified: trunk/moon/plugin/ChangeLog
===================================================================
--- trunk/moon/plugin/ChangeLog 2007-06-09 08:24:41 UTC (rev 79037)
+++ trunk/moon/plugin/ChangeLog 2007-06-09 08:30:59 UTC (rev 79038)
@@ -1,5 +1,13 @@
 2007-06-09  Everaldo Canuto  <[EMAIL PROTECTED]>
 
+       [Xaml support]
+
+       * moon-plugin.cpp: 
+       - Read xaml file from src tag and display contents.
+       - Disable demo box, now we have a better demo under xaml file.
+
+2007-06-09  Everaldo Canuto  <[EMAIL PROTECTED]>
+
        * Makefile.am: test added to subdirs.
 
 2007-06-09  Everaldo Canuto  <[EMAIL PROTECTED]>

Modified: trunk/moon/plugin/moon-plugin.cpp
===================================================================
--- trunk/moon/plugin/moon-plugin.cpp   2007-06-09 08:24:41 UTC (rev 79037)
+++ trunk/moon/plugin/moon-plugin.cpp   2007-06-09 08:30:59 UTC (rev 79038)
@@ -210,7 +210,7 @@
        surface_attach (this->surface, canvas);
        gtk_container_add (GTK_CONTAINER (container), 
this->surface->drawing_area);
 
-       CreateDemoControls ();
+       //CreateDemoControls ();
 #else
        GtkWidget *label = gtk_label_new (PLUGIN_OURNAME" "PLUGIN_OURVERSION);
        gtk_misc_set_alignment (GTK_MISC (label), 0, 0);
@@ -252,6 +252,8 @@
 NPError
 PluginInstance::NewStream (NPMIMEType type, NPStream* stream, NPBool seekable, 
uint16* stype)
 {
+       *stype = NP_ASFILEONLY;
+
        return NPERR_NO_ERROR;
 }
 
@@ -264,7 +266,9 @@
 void
 PluginInstance::StreamAsFile (NPStream* stream, const char* fname)
 {
-       // nothing to do.
+       DEBUGMSG ("StreamAsFile: %s", fname);
+
+       panel_child_add (this->canvas, xaml_create_from_file (fname, NULL));
 }
 
 int32

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

Reply via email to