[gnome-bluetooth] [PATCH 05/12] icon: allow only x11 backend

Ladislav Michl ladis at linux-mips.org
Sun Jan 15 04:43:36 EST 2017


GtkStatusIcon does not work under Wayland.

Signed-off-by: Ladislav Michl <ladis at linux-mips.org>
---
 src/main.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/main.c b/src/main.c
index 8e4c6ae..9a6f317 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,5 +1,5 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
-/* 
+/*
  * Copyright (C) 2002-2004 Edd Dumbill <edd at usefulinc.com>
  * Copyright (C) 2005-2007 Bastien Nocera <hadess at hadess.net>
  *
@@ -48,6 +48,8 @@ main (int argc, char **argv)
 	GOptionContext *context;
 	GError *error = NULL;
 
+	gdk_set_allowed_backends ("x11");
+
 	bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
 	bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
 	textdomain (GETTEXT_PACKAGE);
@@ -79,7 +81,7 @@ main (int argc, char **argv)
 		return 0;
 	}
 
-	gconf_init (argc, argv, NULL);
+	gtk_init (&argc, &argv);
 
 	app = g_new0 (MyApp, 1);
 
-- 
2.11.0



More information about the gnome-bluetooth mailing list