bug-buddy r2738 - in trunk: . gnome-breakpad
- From: matthiasc svn gnome org
 
- To: svn-commits-list gnome org
 
- Subject: bug-buddy r2738 - in trunk: . gnome-breakpad
 
- Date: Sat,  4 Oct 2008 02:54:30 +0000 (UTC)
 
Author: matthiasc
Date: Sat Oct  4 02:54:30 2008
New Revision: 2738
URL: http://svn.gnome.org/viewvc/bug-buddy?rev=2738&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:
   trunk/ChangeLog
   trunk/gnome-breakpad/gnome-breakpad.cc
Modified: trunk/gnome-breakpad/gnome-breakpad.cc
==============================================================================
--- trunk/gnome-breakpad/gnome-breakpad.cc	(original)
+++ trunk/gnome-breakpad/gnome-breakpad.cc	Sat Oct  4 02:54:30 2008
@@ -51,6 +51,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    ();
@@ -479,3 +480,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]