Re: Can I make a IM Module resident?



Hi,

James Su <suzhe gnuchina org> writes:

> Recently, I'm developing a IM Module for gtk+-2.x, but I met a problem.
> Because I registered a new class within my IM Module by
> g_type_register_static, then when I open a input context the second
> time, the application crashed. The error message shows can not register
> a type which already registered. In order to solve this problem, I
> realized that I must make my IM module resident in the memory to prevent
> my class being registered twice.

you should do what the other input modules do and use
g_type_module_register_type() instead of g_type_register_static().


Salut, Sven



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