forked from AuroraMiddleware/gtk
gdk: Stop using deprecated pango api
This commit is contained in:
parent
2350d0945a
commit
101f1c7b42
@ -31,12 +31,13 @@
|
||||
#include <limits.h>
|
||||
#include <errno.h>
|
||||
#include <sys/mman.h>
|
||||
#include <fribidi.h>
|
||||
|
||||
#include "gdk.h"
|
||||
#include "gdkwayland.h"
|
||||
|
||||
#include "gdkprivate-wayland.h"
|
||||
#include "gdkinternals.h"
|
||||
#include "gdk-private.h"
|
||||
#include "gdkkeysprivate.h"
|
||||
|
||||
#include <xkbcommon/xkbcommon.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:
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include "gdkkeysyms.h"
|
||||
#include "gdkprivate-x11.h"
|
||||
#include "gdkdisplay-x11.h"
|
||||
#include "gdk-private.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@ -480,7 +481,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