summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-file-operations.c
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-07-16 04:56:55 +0200
committerZenWalker <[email protected]>2017-07-16 04:56:55 +0200
commit93a5e46e96a251b7574859bc1cd211fdbde01c3d (patch)
tree7bef2fd6e07d146879e5e68438023b2b3f547014 /libcaja-private/caja-file-operations.c
parenta36653c9b55d879cf8b22cbd2776db4d5c8f0d88 (diff)
downloadcaja-93a5e46e96a251b7574859bc1cd211fdbde01c3d.tar.bz2
caja-93a5e46e96a251b7574859bc1cd211fdbde01c3d.tar.xz
avoid deprecated gdk_screen_get_number
Diffstat (limited to 'libcaja-private/caja-file-operations.c')
-rw-r--r--libcaja-private/caja-file-operations.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcaja-private/caja-file-operations.c b/libcaja-private/caja-file-operations.c
index 0e6a7f64..cb3ba2ba 100644
--- a/libcaja-private/caja-file-operations.c
+++ b/libcaja-private/caja-file-operations.c
@@ -52,6 +52,7 @@
#include <glib/gi18n.h>
#include <glib/gstdio.h>
#include <gdk/gdk.h>
+#include <gdk/gdkx.h>
#include <gtk/gtk.h>
#include <gio/gio.h>
#include <glib.h>
@@ -965,7 +966,7 @@ init_common (gsize job_size,
common->screen_num = 0;
if (parent_window) {
screen = gtk_widget_get_screen (GTK_WIDGET (parent_window));
- common->screen_num = gdk_screen_get_number (screen);
+ common->screen_num = gdk_x11_screen_get_screen_number (screen);
}
return common;