<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,5 @@
 dnl automake/autoconf setup
-AC_INIT([moonshine], [0.3])
+AC_INIT([moonshine], [0.4])
 AC_CONFIG_SRCDIR(README)
 AC_CANONICAL_SYSTEM
 AC_PREREQ(2.13)
@@ -17,14 +17,20 @@ AC_PROG_LIBTOOL
 PKG_PROG_PKG_CONFIG
 
 dnl Plugin build configuration
-PKG_CHECK_MODULES(MOZILLA, libxul-unstable mozilla-plugin)
+PKG_CHECK_MODULES(MOZILLA, libxul mozilla-plugin)
 PKG_CHECK_MODULES(GLIB, glib-2.0 &gt;= 2.14 gmodule-2.0 &gt;= 2.14)
 AC_SUBST(MOZILLA_CFLAGS)
 AC_SUBST(CFLAGS)
 
+dnl xulrunner-1.9.1 replaced npupp.h with npfunctions.h
+CFLAGS_save=&quot;$CFLAGS&quot;
+CFLAGS=&quot;$CFLAGS $MOZILLA_CFLAGS&quot;
+AC_CHECK_HEADERS(npfunctions.h)
+CFLAGS=&quot;$CFLAGS_SAVE&quot;
+
 dnl xulrunner and XPI configuration
 MIN_FIREFOX_VERSION=&quot;3.0&quot;
-MAX_FIREFOX_VERSION=&quot;3.1.*&quot;
+MAX_FIREFOX_VERSION=&quot;3.5.*&quot;
 MIN_GECKO_VERSION=&quot;1.9&quot;
 MAX_GECKO_VERSION=&quot;1.9.*&quot;
 AC_SUBST([MIN_FIREFOX_VERSION])</diff>
      <filename>configure.ac</filename>
    </modified>
    <modified>
      <diff>@@ -63,7 +63,7 @@ function MoonshinePlayer () {
         }));
     };
     
-    this.__defineGetter__ (&quot;CenteredOffset&quot;, function (y) {
+    this.__defineSetter__ (&quot;CenteredOffset&quot;, function (y) {
         this.ErrorPopup.CenteredOffsetY = y;
         this.BufferingPopup.CenteredOffsetY = y;
         this.AboutPopup.CenteredOffsetY = y;</diff>
      <filename>player/moonshine-player.js</filename>
    </modified>
    <modified>
      <diff>@@ -7,6 +7,8 @@
 // Copyright 2009 Novell, Inc.
 // 
 
+#include &lt;config.h&gt;
+
 #include &lt;string.h&gt;
 
 #include &quot;mmp-binder.h&quot;
@@ -53,7 +55,7 @@ mmp_binder_load_player_xaml (MoonlightPluginInstance *plugin)
 	if (mmp_script_document_create_element (npp, &amp;document, &quot;script&quot;, &amp;script_element)) {
 		if (mmp_script_element_set_property_string (npp, &amp;script_element, &quot;id&quot;, MLMP_XAML_DOM_ID) &amp;&amp;
 			mmp_script_element_set_property_string (npp, &amp;script_element, &quot;type&quot;, &quot;text/xaml&quot;) &amp;&amp;
-			mmp_script_document_create_text_node (npp, &amp;document, &quot;&lt;Canvas/&gt;&quot;, &amp;xaml_node)) {
+			mmp_script_document_create_text_node (npp, &amp;document, &quot;&lt;Canvas xmlns=\&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation\&quot;/&gt;&quot;, &amp;xaml_node)) {
 			
 			if (mmp_script_element_append_child (npp, &amp;script_element, &amp;xaml_node)) {
 				if (mmp_script_element_get_property_object (npp, &amp;document, &quot;body&quot;, &amp;body)) {</diff>
      <filename>plugin/mmp-binder.c</filename>
    </modified>
    <modified>
      <diff>@@ -73,7 +73,7 @@ mmp_plugin_proxy_load_module (gchar *prefix)
 	gchar *path = g_module_build_path (prefix, &quot;moonloader&quot;);
 	
 	if (g_file_test (path, G_FILE_TEST_EXISTS)) {
-		plugin_host-&gt;module = g_module_open (path, G_MODULE_BIND_LOCAL);
+		plugin_host-&gt;module = g_module_open (path, G_MODULE_BIND_LOCAL | G_MODULE_BIND_LAZY);
 		
 		if (plugin_host-&gt;module != NULL
 			&amp;&amp; mmp_plugin_proxy_load_symbol (&quot;NP_Initialize&quot;, (gpointer *)&amp;plugin_host-&gt;np_initialize)</diff>
      <filename>plugin/mmp-plugin-proxy.c</filename>
    </modified>
    <modified>
      <diff>@@ -7,6 +7,8 @@
 // Copyright 2009 Novell, Inc.
 // 
 
+#include &lt;config.h&gt;
+
 #include &lt;string.h&gt;
 
 #include &quot;mmp-plugin.h&quot;</diff>
      <filename>plugin/mmp-plugin.c</filename>
    </modified>
    <modified>
      <diff>@@ -12,7 +12,11 @@
 
 #include &lt;glib.h&gt;
 #include &lt;gmodule.h&gt;
+#ifdef HAVE_NPFUNCTIONS_H
+#include &lt;npfunctions.h&gt;
+#else
 #include &lt;npupp.h&gt;
+#endif
 
 #define mp_debug(...) g_debug   (&quot;libmoonmp-plugin: &quot; __VA_ARGS__)
 #define mp_error(...) g_warning (&quot;libmoonmp-plugin: &quot; __VA_ARGS__)
@@ -31,9 +35,15 @@ typedef struct {
 	MoonEntry_NP_Shutdown np_shutdown;
 	MoonEntry_NP_GetValue np_getvalue;
 
+#ifdef HAVE_NPFUNCTIONS_H
+	NPP_NewProcPtr moon_npp_new;
+	NPP_DestroyProcPtr moon_npp_destroy;
+	NPP_StreamAsFileProcPtr moon_npp_stream_as_file;
+#else
 	NPP_NewUPP moon_npp_new;
 	NPP_DestroyUPP moon_npp_destroy;
 	NPP_StreamAsFileUPP moon_npp_stream_as_file;
+#endif
 
 	NPNetscapeFuncs mozilla_funcs;
 } MoonlightPlugin;</diff>
      <filename>plugin/mmp-plugin.h</filename>
    </modified>
    <modified>
      <diff>@@ -7,6 +7,8 @@
 // Copyright 2009 Novell, Inc.
 // 
 
+#include &lt;config.h&gt;
+
 #include &lt;string.h&gt;
 
 #include &quot;mmp-script.h&quot;</diff>
      <filename>plugin/mmp-script.c</filename>
    </modified>
    <modified>
      <diff>@@ -11,7 +11,11 @@
 #define _MMP_SCRIPT_H
 
 #include &lt;glib.h&gt;
+#ifdef HAVE_NPFUNCTIONS_H
+#include &lt;npfunctions.h&gt;
+#else
 #include &lt;npupp.h&gt;
+#endif
 
 G_BEGIN_DECLS
 </diff>
      <filename>plugin/mmp-script.h</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b80f974aaa215a59c852209c767a914d171f9d42</id>
    </parent>
  </parents>
  <author>
    <name>Jeffrey Stedfast</name>
    <email>fejj@gnome.org</email>
  </author>
  <url>http://github.com/abock/moonshine/commit/1e6efed14d57c937005f8610e2a4fadfea37cfa4</url>
  <id>1e6efed14d57c937005f8610e2a4fadfea37cfa4</id>
  <committed-date>2009-09-02T12:53:06-07:00</committed-date>
  <authored-date>2009-09-02T12:33:04-07:00</authored-date>
  <message>Fixes to work with Moonlight 2.0

2009-09-02  Jeffrey Setdfast  &lt;fejj@novell.com&gt;

	* configure.ac: Update MAX_FIREFOX_VERSION to 3.5.* and add checks
	for npfunctions.h vs npupp.h. Also bumped Moonshine version to
	0.4.

	* player/moonshine-player.js: Fixed CenetredOffset getter to be a
	setter as it should have been.

	* plugin/mmp-binder.c: Silverlight 2.0 requires the toplevel
	element to have the root XAML namespace.

	* plugin/mmp-plugin-proxy.c: Need to LAZY-bind libmoonloader.so in
	order to work with Moonlight 2.0 since it dynamically loads
	libmoon.so

	* plugin/mmp-plugin.h: Fixed to build with FF3.5 by conditionally
	including npfunctions.h instead of npupp.h.

	* plugin/*.c: Fixed to #include &lt;config.h&gt; so the headers get the
	proper defines (like HAVE_NPFUNCTIONS_H).</message>
  <tree>9f86e3093a035e515e3bef043f13574898fcc923</tree>
  <committer>
    <name>Aaron Bockover</name>
    <email>abockover@novell.com</email>
  </committer>
</commit>
