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:
Jasper St. Pierre 2012-03-15 17:56:59 -04:00
parent d05d748fe2
commit ecdd0875df

View File

@ -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));