mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
gdk/x11/gdkkeys-x11.c (get_direction): Don't call g_strcasecmp on NULL strings. (#59058)
This commit is contained in:
parent
9fccd2cca4
commit
d8e3d58d42
@ -1,3 +1,8 @@
|
||||
Fri Sep 7 12:48:56 2001 Matthias Clasen <matthiasc@poet.de>
|
||||
|
||||
* gdk/x11/gdkkeys-x11.c (get_direction): Don't call
|
||||
g_strcasecmp on NULL strings. (#59058)
|
||||
|
||||
2001-09-06 Alex Larsson <alexl@redhat.com>
|
||||
|
||||
* gtk/gtkbin.c:
|
||||
|
@ -1,3 +1,8 @@
|
||||
Fri Sep 7 12:48:56 2001 Matthias Clasen <matthiasc@poet.de>
|
||||
|
||||
* gdk/x11/gdkkeys-x11.c (get_direction): Don't call
|
||||
g_strcasecmp on NULL strings. (#59058)
|
||||
|
||||
2001-09-06 Alex Larsson <alexl@redhat.com>
|
||||
|
||||
* gtk/gtkbin.c:
|
||||
|
@ -1,3 +1,8 @@
|
||||
Fri Sep 7 12:48:56 2001 Matthias Clasen <matthiasc@poet.de>
|
||||
|
||||
* gdk/x11/gdkkeys-x11.c (get_direction): Don't call
|
||||
g_strcasecmp on NULL strings. (#59058)
|
||||
|
||||
2001-09-06 Alex Larsson <alexl@redhat.com>
|
||||
|
||||
* gtk/gtkbin.c:
|
||||
|
@ -1,3 +1,8 @@
|
||||
Fri Sep 7 12:48:56 2001 Matthias Clasen <matthiasc@poet.de>
|
||||
|
||||
* gdk/x11/gdkkeys-x11.c (get_direction): Don't call
|
||||
g_strcasecmp on NULL strings. (#59058)
|
||||
|
||||
2001-09-06 Alex Larsson <alexl@redhat.com>
|
||||
|
||||
* gtk/gtkbin.c:
|
||||
|
@ -1,3 +1,8 @@
|
||||
Fri Sep 7 12:48:56 2001 Matthias Clasen <matthiasc@poet.de>
|
||||
|
||||
* gdk/x11/gdkkeys-x11.c (get_direction): Don't call
|
||||
g_strcasecmp on NULL strings. (#59058)
|
||||
|
||||
2001-09-06 Alex Larsson <alexl@redhat.com>
|
||||
|
||||
* gtk/gtkbin.c:
|
||||
|
@ -1,3 +1,8 @@
|
||||
Fri Sep 7 12:48:56 2001 Matthias Clasen <matthiasc@poet.de>
|
||||
|
||||
* gdk/x11/gdkkeys-x11.c (get_direction): Don't call
|
||||
g_strcasecmp on NULL strings. (#59058)
|
||||
|
||||
2001-09-06 Alex Larsson <alexl@redhat.com>
|
||||
|
||||
* gtk/gtkbin.c:
|
||||
|
@ -1,3 +1,8 @@
|
||||
Fri Sep 7 12:48:56 2001 Matthias Clasen <matthiasc@poet.de>
|
||||
|
||||
* gdk/x11/gdkkeys-x11.c (get_direction): Don't call
|
||||
g_strcasecmp on NULL strings. (#59058)
|
||||
|
||||
2001-09-06 Alex Larsson <alexl@redhat.com>
|
||||
|
||||
* gtk/gtkbin.c:
|
||||
|
@ -204,15 +204,19 @@ get_direction (void)
|
||||
|
||||
XkbGetState (gdk_display, XkbUseCoreKbd, &state_rec);
|
||||
|
||||
name = gdk_atom_name (xkb->names->groups[state_rec.locked_group]);
|
||||
if (g_strcasecmp (name, "arabic") == 0 ||
|
||||
g_strcasecmp (name, "hebrew") == 0 ||
|
||||
g_strcasecmp (name, "israelian") == 0)
|
||||
result = PANGO_DIRECTION_RTL;
|
||||
else
|
||||
if (xkb->names->groups[state_rec.locked_group] == None)
|
||||
result = PANGO_DIRECTION_LTR;
|
||||
|
||||
g_free (name);
|
||||
else
|
||||
{
|
||||
name = gdk_atom_name (xkb->names->groups[state_rec.locked_group]);
|
||||
if (g_strcasecmp (name, "arabic") == 0 ||
|
||||
g_strcasecmp (name, "hebrew") == 0 ||
|
||||
g_strcasecmp (name, "israelian") == 0)
|
||||
result = PANGO_DIRECTION_RTL;
|
||||
else
|
||||
result = PANGO_DIRECTION_LTR;
|
||||
g_free (name);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user