forked from AuroraMiddleware/gtk
gdk: Stop using deprecated pango api
This commit is contained in:
parent
998314b8ba
commit
3da6497d9f
@ -31,6 +31,7 @@
|
||||
#include <limits.h>
|
||||
#include <errno.h>
|
||||
#include <sys/mman.h>
|
||||
#include <fribidi.h>
|
||||
|
||||
#include "gdk.h"
|
||||
#include "gdkwayland.h"
|
||||
@ -499,7 +500,7 @@ update_direction (GdkWaylandKeymap *keymap)
|
||||
{
|
||||
PangoDirection dir;
|
||||
|
||||
dir = pango_unichar_direction (xkb_keysym_to_utf32 (syms[sym]));
|
||||
dir = gdk_unichar_direction (xkb_keysym_to_utf32 (syms[sym]));
|
||||
switch (dir)
|
||||
{
|
||||
case PANGO_DIRECTION_RTL:
|
||||
|
@ -480,7 +480,7 @@ get_direction (XkbDescRec *xkb,
|
||||
{
|
||||
gint level = 0;
|
||||
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user