summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-01-08 11:24:47 +0100
committerraveit65 <[email protected]>2017-01-08 11:24:47 +0100
commitb03c3e3d24e7c623e20d7303c3686b7f914fe43f (patch)
tree2a6a44368467b218888c7cbfef6e484e07ba50c9
parent9960403d634f42ad23d89bec6e0b57d4644a04fa (diff)
downloadcaja-b03c3e3d24e7c623e20d7303c3686b7f914fe43f.tar.bz2
caja-b03c3e3d24e7c623e20d7303c3686b7f914fe43f.tar.xz
use GTK_CHECK_VERSION for gdk_set_allowed_backends
-rw-r--r--src/caja-main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/caja-main.c b/src/caja-main.c
index 795a480e..fdaaa7b4 100644
--- a/src/caja-main.c
+++ b/src/caja-main.c
@@ -438,7 +438,9 @@ main (int argc, char *argv[])
g_set_prgname ("caja");
+#if GTK_CHECK_VERSION(3, 0, 0)
gdk_set_allowed_backends ("x11");
+#endif
if (g_file_test (DATADIR "/applications/caja.desktop", G_FILE_TEST_EXISTS))
{