Bug 465548 - make canberra gtk module resident
Summary: make canberra gtk module resident
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: libcanberra
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Lennart Poettering
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F10DesktopTarget
TreeView+ depends on / blocked
 
Reported: 2008-10-03 20:17 UTC by Matthias Clasen
Modified: 2008-10-06 14:03 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-10-06 14:03:44 UTC


Attachments (Terms of Use)

Description Matthias Clasen 2008-10-03 20:17:20 UTC
Since it doesn't handle being unloaded gracefully. To do so, add something like:

const char *
g_module_check_init (GModule *module)
{
    g_module_make_resident (module);

    return NULL;
}



to the end of canberra-gtk-module.c.

I've tested this and it does prevent the module from being unloaded, and thus prevents your desktop from dying when you play with the gtk-modules gconf settings in gconf-editor.

Comment 1 Lennart Poettering 2008-10-05 20:27:40 UTC
Fixed upstream. Need to upload a new version soon.

Comment 2 Lennart Poettering 2008-10-06 14:03:44 UTC
Fixed.


Note You need to log in before you can comment on or make changes to this bug.