Re: Can I make a IM Module resident?



Hi,

The class I registered is not the im module class, it's another class defined by myself. The im class is registered by g_type_module_register_type().

Regards
James Su


Sven Neumann wrote:

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]