Avoid spurious selection of RTL direction if the widget does not have

2005-02-04  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkentry.c (gtk_entry_create_layout): Avoid spurious
	selection of RTL direction if the widget does not have
	focus.  (#164125, Frederic Crozat)
This commit is contained in:
Matthias Clasen 2005-02-04 15:37:48 +00:00 committed by Matthias Clasen
parent 5c271537cb
commit 2d6557175f
4 changed files with 22 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2005-02-04 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentry.c (gtk_entry_create_layout): Avoid spurious
selection of RTL direction if the widget does not have
focus. (#164125, Frederic Crozat)
Thu Feb 3 19:15:55 2005 Manish Singh <yosh@gimp.org>
* gdk/x11/gdkdrawable-x11.c: #include cairo-xlib.h

View File

@ -1,3 +1,9 @@
2005-02-04 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentry.c (gtk_entry_create_layout): Avoid spurious
selection of RTL direction if the widget does not have
focus. (#164125, Frederic Crozat)
Thu Feb 3 19:15:55 2005 Manish Singh <yosh@gimp.org>
* gdk/x11/gdkdrawable-x11.c: #include cairo-xlib.h

View File

@ -1,3 +1,9 @@
2005-02-04 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentry.c (gtk_entry_create_layout): Avoid spurious
selection of RTL direction if the widget does not have
focus. (#164125, Frederic Crozat)
Thu Feb 3 19:15:55 2005 Manish Singh <yosh@gimp.org>
* gdk/x11/gdkdrawable-x11.c: #include cairo-xlib.h

View File

@ -2968,7 +2968,10 @@ gtk_entry_create_layout (GtkEntry *entry,
{
GdkDisplay *display = gtk_widget_get_display (widget);
GdkKeymap *keymap = gdk_keymap_get_for_display (display);
pango_dir = gdk_keymap_get_direction (keymap);
if (gdk_keymap_get_direction (keymap) == PANGO_DIRECTION_RTL)
pango_dir = PANGO_DIRECTION_RTL;
else
pango_dir = PANGO_DIRECTION_LTR;
}
else
{