browser-plugin: Make sure to initialize GType
While most browsers use GTK+ on GNOME in some fashion, Opera and Konqueror do not. We need to explicitly initialize GType before the browser plugin works properly.
This commit is contained in:
parent
d05d748fe2
commit
ecdd0875df
@ -153,6 +153,8 @@ NP_Initialize(NPNetscapeFuncs *pfuncs, NPPluginFuncs *plugin)
|
|||||||
/* global initialization routine, called once when plugin
|
/* global initialization routine, called once when plugin
|
||||||
is loaded */
|
is loaded */
|
||||||
|
|
||||||
|
g_type_init ();
|
||||||
|
|
||||||
g_debug ("plugin loaded");
|
g_debug ("plugin loaded");
|
||||||
|
|
||||||
memcpy (&funcs, pfuncs, sizeof (funcs));
|
memcpy (&funcs, pfuncs, sizeof (funcs));
|
||||||
|
Loading…
Reference in New Issue
Block a user