mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +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,16 +204,20 @@ 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;
|
||||
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);
|
||||
}
|
||||
|
||||
g_free (name);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user