bug-buddy r2739 - in branches/gnome-2-24: . gnome-breakpad



Author: matthiasc
Date: Sat Oct  4 02:58:57 2008
New Revision: 2739
URL: http://svn.gnome.org/viewvc/bug-buddy?rev=2739&view=rev

Log:
2008-10-03  Matthias Clasen  <mclasen redhat com>

        Bug 554931 â make gtk module resident

        * gnome-breakpad/gnome-breakpad.cc (g_module_check_init): New
        function to prevent unloading the module, since unloading it
        doesn't work.




Modified:
   branches/gnome-2-24/ChangeLog
   branches/gnome-2-24/gnome-breakpad/gnome-breakpad.cc

Modified: branches/gnome-2-24/gnome-breakpad/gnome-breakpad.cc
==============================================================================
--- branches/gnome-2-24/gnome-breakpad/gnome-breakpad.cc	(original)
+++ branches/gnome-2-24/gnome-breakpad/gnome-breakpad.cc	Sat Oct  4 02:58:57 2008
@@ -32,6 +32,7 @@
 #include <string.h>
 #endif
 
+extern "C" const char *g_module_check_init (GModule *module);
 extern "C" int gtk_module_init (int *argc, char** argv[]);
 static bool    run_bug_buddy   (const gchar *appname, pid_t pid, const gchar *minidump_path);
 static void    check_if_gdb    ();
@@ -337,3 +338,12 @@
 	}
 	return 0;
 }
+
+const char *
+g_module_check_init (GModule *module)
+{
+        g_module_make_resident (module);
+
+        return NULL;
+}
+



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