summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2009-06-15 16:16:37 +0200
committerSamuel Lidén Borell <samuel@slbdata.se>2010-01-02 22:30:07 +0100
commit1a24173c79be1160d82f45897362497dc785d8e8 (patch)
tree99f9dba7bcd578c415d198776686018c5a3cd89c /plugin
parent37bc2e95c6578d256e1261ff381c37ac3b2ba3f5 (diff)
downloadfribid-1a24173c79be1160d82f45897362497dc785d8e8.tar.gz
fribid-1a24173c79be1160d82f45897362497dc785d8e8.tar.bz2
fribid-1a24173c79be1160d82f45897362497dc785d8e8.zip
Added a dummy NPP_SetWindow function
The Opera browser calls this function even for hidden plugins
Diffstat (limited to 'plugin')
-rw-r--r--plugin/np_entry.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/plugin/np_entry.c b/plugin/np_entry.c
index ef9b778..7b15313 100644
--- a/plugin/np_entry.c
+++ b/plugin/np_entry.c
@@ -65,7 +65,7 @@ EXPORT NPError OSCALL NP_GetEntryPoints(NPPluginFuncs* pFuncs)
pFuncs->version = (NP_VERSION_MAJOR << 8) | NP_VERSION_MINOR;
pFuncs->newp = NPP_New;
pFuncs->destroy = NPP_Destroy;
- //pFuncs->setwindow = NPP_SetWindow;
+ pFuncs->setwindow = NPP_SetWindow;
//pFuncs->newstream = NPP_NewStream;
//pFuncs->destroystream = NPP_DestroyStream;
//pFuncs->asfile = NPP_StreamAsFile;
@@ -168,7 +168,7 @@ NP_Initialize(NPNetscapeFuncs* pFuncs
pluginFuncs->size = sizeof(NPPluginFuncs);
pluginFuncs->newp = NPP_New;
pluginFuncs->destroy = NPP_Destroy;
- //pluginFuncs->setwindow = NPP_SetWindow;
+ pluginFuncs->setwindow = NPP_SetWindow;
//pluginFuncs->newstream = NPP_NewStream;
//pluginFuncs->destroystream = NPP_DestroyStream;
//pluginFuncs->asfile = NPP_StreamAsFile;
@@ -191,3 +191,12 @@ EXPORT NPError OSCALL NP_Shutdown()
return NPERR_NO_ERROR;
}
+/* Dummy functions */
+NPError NP_LOADDS NPP_SetWindow(NPP instance, NPWindow* window) {
+ return NPERR_NO_ERROR;
+}
+
+
+
+
+