Re: gtk+ 2.1 on RH8

I have solved this problem, and it works for me, I don't know is this bug will 
occure on other locale.

I have changed the code in modules/input/gtkimcontextxim.c and the diff is 
listed below.

diff -r gtk+-2.1.0/modules/input/gtkimcontextxim.c 
<       gulong mask = 0;
<       XGetICValues (context_xim->ic,
>        gulong mask = 0;
>        if (context_xim->ic)
>        {
>                       XGetICValues (context_xim->ic,
<       context_xim->filter_key_release = (mask & KeyReleaseMask);
>                       context_xim->filter_key_release = (mask & 
>        }

I think the reason is the pointer of context_xim->ic is NULL, so use the NULL 
pointer to call XGetICValues cause it segment fault.

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