Hi, James Su <[EMAIL PROTECTED]> 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 _______________________________________________ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list