Re: Sorry, I am wrong. (Re: A big bug of gtk2 ?)



milimeter <milimeter 163 com> writes:

> Hello, everybody
> 
>   I am sorry to take back my previous words about a possible bug of gtk2. Now 
> I confirm that it's not the bug of gtk2, but the Chinese Input Method 
> chinput. It grabs the input '>' before the event comes to gtk2, and when 
> emiting the even again, it emit the wrong char '>' instead of '<'

Actually, it *is* a GTK+ bug in its input method support; I finally
tracked it down a few weeks ago.

Regards,
                                        Owen

--- gtk+-2.0.6/modules/input/gtkimcontextxim.c.keycode	Tue Aug 13 23:01:02 2002
+++ gtk+-2.0.6/modules/input/gtkimcontextxim.c	Tue Aug 13 23:02:03 2002
@@ -368,7 +368,7 @@
   xevent.x = xevent.x_root = 0;
   xevent.y = xevent.y_root = 0;
   xevent.state = event->state;
-  xevent.keycode = event->keyval ? XKeysymToKeycode (xevent.display, event->keyval) : 0;
+  xevent.keycode = event->hardware_keycode;
   xevent.same_screen = True;
   
   if (XFilterEvent ((XEvent *)&xevent, GDK_DRAWABLE_XID (context_xim->client_window)))


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