From ecdd0875dff502322de0d0c5ad5dd2ecd63f3562 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 15 Mar 2012 17:56:59 -0400 Subject: [PATCH] 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. --- browser-plugin/browser-plugin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/browser-plugin/browser-plugin.c b/browser-plugin/browser-plugin.c index 16fae1cee..9a4449649 100644 --- a/browser-plugin/browser-plugin.c +++ b/browser-plugin/browser-plugin.c @@ -153,6 +153,8 @@ NP_Initialize(NPNetscapeFuncs *pfuncs, NPPluginFuncs *plugin) /* global initialization routine, called once when plugin is loaded */ + g_type_init (); + g_debug ("plugin loaded"); memcpy (&funcs, pfuncs, sizeof (funcs));