gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash/plugin plugin.cpp


From: Markus Gothe
Subject: [Gnash-commit] gnash/plugin plugin.cpp
Date: Sat, 21 Oct 2006 16:30:51 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Markus Gothe <nihilus>  06/10/21 16:30:51

Modified files:
        plugin         : plugin.cpp 

Log message:
        This is correct and works.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/plugin/plugin.cpp?cvsroot=gnash&r1=1.71&r2=1.72

Patches:
Index: plugin.cpp
===================================================================
RCS file: /sources/gnash/gnash/plugin/plugin.cpp,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -b -r1.71 -r1.72
--- plugin.cpp  21 Oct 2006 16:18:51 -0000      1.71
+++ plugin.cpp  21 Oct 2006 16:30:51 -0000      1.72
@@ -35,7 +35,7 @@
 // 
 //
 
-/* $Id: plugin.cpp,v 1.71 2006/10/21 16:18:51 nihilus Exp $ */
+/* $Id: plugin.cpp,v 1.72 2006/10/21 16:30:51 nihilus Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -346,17 +346,20 @@
     }
 
        NPNToolkitType toolkit;
+       CallNPN_GetValueProc(NPNFuncs.getvalue, NULL,
+                               NPNVToolkit,
+                               (void *)&toolkit);
        
        _width = aWindow->width;
        _height = aWindow->height;
-       //if(toolkit == NPNVGtk2){ //GTK >=2
+       if(toolkit == NPNVGtk2){ //GTK >=2
        _window = reinterpret_cast<Window> (aWindow->window);
-       //return NPERR_NO_ERROR;
-       //}
-       //else if(toolkit == NPNVGtk12){ //GTK >=1.2
-       //_window = (Window)(aWindow->window);
-       //return NPERR_NO_ERROR;
-       //}
+       return NPERR_NO_ERROR;
+       }
+       else if(toolkit == NPNVGtk12){ //GTK >=1.2
+       _window = (Window)(aWindow->window);
+       return NPERR_NO_ERROR;
+       }
        return NPERR_NO_ERROR;
 }
 




reply via email to

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