make the GTK+ module resident

Without doing this, killing gnome-settings-daemon brings down every single
application in the session, since the module doesn't clean up when being unloaded.
This commit is contained in:
Matthias Clasen 2009-03-24 08:04:59 +00:00 committed by Richard Hughes
parent 154d783217
commit cf493c8bf2

View File

@ -328,3 +328,16 @@ gtk_module_init (gint *argc G_GNUC_UNUSED,
{
install_pango_font_map ();
}
const char *g_module_check_init (GModule *module);
const char *
g_module_check_init (GModule *module)
{
/* make the GTK+ module resident
* without doing this, killing gnome-settings-daemon brings down every
* single application in the session, since the module doesn't clean up
* when being unloaded */
g_module_make_resident (module);
return NULL;
}