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 14:26:04 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Markus Gothe <nihilus>  06/10/21 14:26:04

Modified files:
        plugin         : plugin.cpp 

Log message:
        Code actually working somewhat with GTK-1.2

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

Patches:
Index: plugin.cpp
===================================================================
RCS file: /sources/gnash/gnash/plugin/plugin.cpp,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -b -r1.67 -r1.68
--- plugin.cpp  21 Oct 2006 14:16:28 -0000      1.67
+++ plugin.cpp  21 Oct 2006 14:26:04 -0000      1.68
@@ -35,7 +35,7 @@
 // 
 //
 
-/* $Id: plugin.cpp,v 1.67 2006/10/21 14:16:28 nihilus Exp $ */
+/* $Id: plugin.cpp,v 1.68 2006/10/21 14:26:04 nihilus Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -343,12 +343,15 @@
 #endif
     }
 
+       NPNToolkitType toolkit;
+       if(toolkit == NPNVGtk2){ //GTK >=2
     _width = aWindow->width;
     _height = aWindow->height;
-
     _window = reinterpret_cast<Window> (aWindow->window);
 
     return NPERR_NO_ERROR;
+       }
+    else return NPERR_INCOMPATIBLE_VERSION_ERROR;
 }
 
 




reply via email to

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