summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-07-19 01:44:24 +0200
committerZenWalker <[email protected]>2017-07-19 01:44:24 +0200
commitd6ff9aaa0e1be1a1674cd6c0995ae1f289efd632 (patch)
treedb3967d758730eb0fced37ee3072935abb6b1ce4
parent13a48e0a9abb48b8729e5e26de7908e3d334115e (diff)
downloadlibmatekbd-d6ff9aaa0e1be1a1674cd6c0995ae1f289efd632.tar.bz2
libmatekbd-d6ff9aaa0e1be1a1674cd6c0995ae1f289efd632.tar.xz
avoid deprecated gdk_screen_get_number
-rw-r--r--libmatekbd/matekbd-keyboard-drawing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmatekbd/matekbd-keyboard-drawing.c b/libmatekbd/matekbd-keyboard-drawing.c
index a5be4aa..a1344ee 100644
--- a/libmatekbd/matekbd-keyboard-drawing.c
+++ b/libmatekbd/matekbd-keyboard-drawing.c
@@ -2081,11 +2081,11 @@ matekbd_keyboard_drawing_init (MatekbdKeyboardDrawing * drawing)
/* XXX: this stuff probably doesn't matter.. also, gdk_screen_get_default can fail */
if (gtk_widget_has_screen (GTK_WIDGET (drawing)))
drawing->screen_num =
- gdk_screen_get_number (gtk_widget_get_screen
+ gdk_x11_screen_get_screen_number (gtk_widget_get_screen
(GTK_WIDGET (drawing)));
else
drawing->screen_num =
- gdk_screen_get_number (gdk_screen_get_default ());
+ gdk_x11_screen_get_screen_number (gdk_screen_get_default ());
drawing->surface = NULL;
alloc_render_context (drawing);