[gnome-shell] browser-plugin: Make sure to initialize GType



commit ecdd0875dff502322de0d0c5ad5dd2ecd63f3562
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Mar 15 17:56:59 2012 -0400

    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 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/browser-plugin/browser-plugin.c b/browser-plugin/browser-plugin.c
index 16fae1c..9a44496 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));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]