[gnome-control-center/wip/feborges/new-remote-desktop-dialog: 10/11] sharing/remote-desktop: Hook up to explicit enable setting




commit cf7d700f7bb2359fde9d3ad6b56422dfb1db473a
Author: Jonas Ådahl <jadahl gmail com>
Date:   Fri Feb 25 19:01:53 2022 +0100

    sharing/remote-desktop: Hook up to explicit enable setting
    
    Enabling the service isn't enough, one also needs to enable the relevant
    backend.

 panels/sharing/cc-sharing-panel.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/panels/sharing/cc-sharing-panel.c b/panels/sharing/cc-sharing-panel.c
index 8ec246722..19489a2ca 100644
--- a/panels/sharing/cc-sharing-panel.c
+++ b/panels/sharing/cc-sharing-panel.c
@@ -1325,6 +1325,11 @@ cc_sharing_panel_setup_remote_desktop_dialog (CcSharingPanel *self)
 
   rdp_settings = g_settings_new (GNOME_REMOTE_DESKTOP_RDP_SCHEMA_ID);
 
+  g_settings_bind (rdp_settings,
+                   "enable",
+                   self->remote_desktop_switch,
+                   "active",
+                   G_SETTINGS_BIND_DEFAULT);
   g_settings_bind (rdp_settings,
                    "view-only",
                    self->remote_control_checkbutton,


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