gdk: Stop using deprecated pango api

This commit is contained in:
Matthias Clasen 2019-01-31 14:05:28 -05:00
parent 998314b8ba
commit 3da6497d9f
2 changed files with 3 additions and 2 deletions

View File

@ -31,6 +31,7 @@
#include <limits.h> #include <limits.h>
#include <errno.h> #include <errno.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <fribidi.h>
#include "gdk.h" #include "gdk.h"
#include "gdkwayland.h" #include "gdkwayland.h"
@ -499,7 +500,7 @@ update_direction (GdkWaylandKeymap *keymap)
{ {
PangoDirection dir; PangoDirection dir;
dir = pango_unichar_direction (xkb_keysym_to_utf32 (syms[sym])); dir = gdk_unichar_direction (xkb_keysym_to_utf32 (syms[sym]));
switch (dir) switch (dir)
{ {
case PANGO_DIRECTION_RTL: case PANGO_DIRECTION_RTL:

View File

@ -480,7 +480,7 @@ get_direction (XkbDescRec *xkb,
{ {
gint level = 0; gint level = 0;
KeySym sym = XkbKeySymEntry (xkb, code, level, group); KeySym sym = XkbKeySymEntry (xkb, code, level, group);
PangoDirection dir = pango_unichar_direction (gdk_keyval_to_unicode (sym)); PangoDirection dir = gdk_unichar_direction (gdk_keyval_to_unicode (sym));
switch (dir) switch (dir)
{ {