gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash ChangeLog plugin/win32/plugin.cpp


From: Benjamin Wolsey
Subject: [Gnash-commit] gnash ChangeLog plugin/win32/plugin.cpp
Date: Mon, 26 May 2008 08:03:17 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Benjamin Wolsey <bwy>   08/05/26 08:03:17

Modified files:
        .              : ChangeLog 
        plugin/win32   : plugin.cpp 

Log message:
                * plugin/win32/plugin.cpp: fscommand is now registered with the
                  movie_root.
        
                Good thing the buildbot is up again.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6705&r2=1.6706
http://cvs.savannah.gnu.org/viewcvs/gnash/plugin/win32/plugin.cpp?cvsroot=gnash&r1=1.15&r2=1.16

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6705
retrieving revision 1.6706
diff -u -b -r1.6705 -r1.6706
--- ChangeLog   25 May 2008 20:26:50 -0000      1.6705
+++ ChangeLog   26 May 2008 08:03:16 -0000      1.6706
@@ -1,3 +1,8 @@
+2008-05-26 Benjamin Wolsey <address@hidden>
+
+       * plugin/win32/plugin.cpp: fscommand is now registered with the
+         movie_root.
+
 2008-05-25 Benjamin Wolsey <address@hidden>
 
        * server/sprite_instance.cpp: replace sprintf with boost::lexical_cast.

Index: plugin/win32/plugin.cpp
===================================================================
RCS file: /sources/gnash/gnash/plugin/win32/plugin.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- plugin/win32/plugin.cpp     15 Mar 2008 23:39:01 -0000      1.15
+++ plugin/win32/plugin.cpp     26 May 2008 08:03:17 -0000      1.16
@@ -64,8 +64,8 @@
 #include <windowsx.h>
 #include <wingdi.h>
 
-#include <stdarg.h>
-#include <stdint.h>
+#include <cstdarg>
+#include <cstdint>
 #include <fstream>
 
 #include "plugin.h"
@@ -393,7 +393,6 @@
     // Initialize Gnash core library.
     gnash::gnashInit();
     gnash::set_use_cache_files(false);
-    gnash::registerFSCommandCallback(FSCommand_callback);
     DBG("Gnash core initialized.\n");
  
     // Init logfile.
@@ -466,6 +465,14 @@
     gnash::movie_root& root = gnash::VM::init(*md, clock).getRoot(); 
     DBG("Gnash VM initialized.\n");
 
+    // Register this plugin as listener for FsCommands from the core
+    // (movie_root)
+    root.registerFSCommandCallback(FSCommand_callback);
+    
+    // Register a static function to handle ActionScript events such
+    // as Mouse.hide, Stage.align etc.
+    // root.registerEventCallback(&staticEventHandlingFunction);
+
     md->completeLoad();
     DBG("Movie loaded.\n");
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]