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 
gtk+/modules/input/gtkimcontextxim.c
1066,1067c1066,1069
<       gulong mask = 0;
<       XGetICValues (context_xim->ic,
---
>        gulong mask = 0;
>        if (context_xim->ic)
>        {
>                       XGetICValues (context_xim->ic,
1070c1072,1073
<       context_xim->filter_key_release = (mask & KeyReleaseMask);
---
>                       context_xim->filter_key_release = (mask & 
KeyReleaseMask);
>        }

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]