[gnome-control-center/gnome-3-22] sharing: Hide Vino when using Wayland
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-22] sharing: Hide Vino when using Wayland
- Date: Thu, 17 Nov 2016 15:05:51 +0000 (UTC)
commit 3f4990d217c649ecbba1ccd2d7f725323b566868
Author: Felipe Borges <felipeborges gnome org>
Date: Wed Nov 16 16:05:57 2016 +0100
sharing: Hide Vino when using Wayland
Since we don't support "Screen Sharing" under Wayland yet.
https://bugzilla.gnome.org/show_bug.cgi?id=774553
panels/sharing/cc-sharing-panel.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/panels/sharing/cc-sharing-panel.c b/panels/sharing/cc-sharing-panel.c
index a6e7575..236be1c 100644
--- a/panels/sharing/cc-sharing-panel.c
+++ b/panels/sharing/cc-sharing-panel.c
@@ -32,6 +32,9 @@
#include "cc-sharing-switch.h"
#include "org.gnome.SettingsDaemon.Sharing.h"
+#ifdef GDK_WINDOWING_WAYLAND
+#include <gdk/gdkwayland.h>
+#endif
#include <glib/gi18n.h>
#include <config.h>
@@ -1154,6 +1157,11 @@ cc_sharing_panel_init (CcSharingPanel *self)
cc_sharing_panel_setup_remote_login_dialog (self);
/* screen sharing */
+#ifdef GDK_WINDOWING_WAYLAND
+ if (GDK_IS_WAYLAND_DISPLAY (gdk_display_get_default ()))
+ gtk_widget_hide (WID ("screen-sharing-button"));
+ else
+#endif
if (cc_sharing_panel_check_schema_available (self, VINO_SCHEMA_ID))
cc_sharing_panel_setup_screen_sharing_dialog (self);
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]