[libgnomekbd] gkbd-keyboard-display: Require that GDK use the X11 backend



commit 6139e051ff2d4d6c9a063d1da5aad86640028981
Author: Rui Matos <tiagomatos gmail com>
Date:   Tue Sep 13 18:27:53 2016 +0200

    gkbd-keyboard-display: Require that GDK use the X11 backend
    
    This code is heavily dependent on X11 API.

 libgnomekbd/gkbd-keyboard-display.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libgnomekbd/gkbd-keyboard-display.c b/libgnomekbd/gkbd-keyboard-display.c
index 61fab84..3e2f271 100644
--- a/libgnomekbd/gkbd-keyboard-display.c
+++ b/libgnomekbd/gkbd-keyboard-display.c
@@ -57,6 +57,7 @@ main (int argc, char **argv)
        bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
        textdomain (GETTEXT_PACKAGE);
 
+       gdk_set_allowed_backends ("x11");
        gtk_init_with_args (&argc, &argv, NULL, options, NULL, &error);
 
        if (error != NULL) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]