SOURCES: gtk+2-xim.patch (NEW) - gtk+2-xim.patch: fixed accelerato...

qrczak qrczak at pld-linux.org
Fri Feb 9 17:23:44 CET 2007


Author: qrczak                       Date: Fri Feb  9 16:23:44 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- gtk+2-xim.patch: fixed accelerator keys with GTK_IM_MODULE=xim
  <http://bugzilla.gnome.org/show_bug.cgi?id=335796>
- Release 2

---- Files affected:
SOURCES:
   gtk+2-xim.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/gtk+2-xim.patch
diff -u /dev/null SOURCES/gtk+2-xim.patch:1.1
--- /dev/null	Fri Feb  9 17:23:44 2007
+++ SOURCES/gtk+2-xim.patch	Fri Feb  9 17:23:39 2007
@@ -0,0 +1,23 @@
+RCS file: /cvs/gnome/gtk+/modules/input/gtkimcontextxim.c,v
+retrieving revision 1.53
+diff -u -p -r1.53 gtkimcontextxim.c
+--- modules/input/gtkimcontextxim.c	30 Jun 2005 18:42:44 -0000	1.53
++++ modules/input/gtkimcontextxim.c	24 Mar 2006 07:26:53 -0000
+@@ -756,6 +756,17 @@ gtk_im_context_xim_filter_keypress (GtkI
+ 
+       buffer[num_bytes] = '\0';
+ 
++      /* If the buffer is good enough to be insert to other widgets,
++       * we will detect the modifiers state and decide whether to discard
++       * this buffer, before things become worse.
++       *
++       * Maybe this fix can't work on some platforms. Need be confirmed.
++       *
++       */
++      if (event->state &
++         (gtk_accelerator_get_default_mod_mask () & ~GDK_SHIFT_MASK))
++         return FALSE;
++
+       result_utf8 = mb_to_utf8 (context_xim, buffer);
+       if (result_utf8)
+ 	{
================================================================


More information about the pld-cvs-commit mailing list