just check the first shift-level of keyboard layout for RTL and LTR

2006-09-20  Behnam Esfahbod <behnam@zwnj.org>
	* gdk/x11/gdkkeys-x11.c:
	  (get_direction): just check the first shift-level of keyboard
	  layout for RTL and LTR keysyms() (compliment to #116626)
This commit is contained in:
Behnam Esfahbod 2006-09-20 17:47:28 +00:00 committed by Behnam Esfahbod
parent 00bfb206ee
commit a0c6753511
2 changed files with 19 additions and 18 deletions

View File

@ -1,3 +1,8 @@
2006-09-20 Behnam Esfahbod <behnam@zwnj.org>
* gdk/x11/gdkkeys-x11.c:
(get_direction): just check the first shift-level of keyboard
layout for RTL and LTR keysyms() (compliment to #116626)
Wed Sep 20 16:59:38 2006 Tim Janik <timj@imendio.com>
* gtk/gtkviewport.c: always update the bin_window position and size

View File

@ -561,10 +561,7 @@ get_direction (XkbDescRec *xkb,
for (code = xkb->min_key_code; code <= xkb->max_key_code; code++)
{
gint width = XkbKeyGroupWidth (xkb, code, group);
gint level;
for (level = 0; level < width; level++)
{
gint level = 0;
KeySym sym = XkbKeySymEntry (xkb, code, level, group);
PangoDirection dir = pango_unichar_direction (gdk_keyval_to_unicode (sym));
@ -580,7 +577,6 @@ get_direction (XkbDescRec *xkb,
break;
}
}
}
if (rtl_minus_ltr > 0)
return PANGO_DIRECTION_RTL;