From d29d75210d519bc4e23ceffeceba4c7322e44e0d Mon Sep 17 00:00:00 2001 From: Thomas Wood Date: Mon, 21 Jan 2013 15:48:10 +0000 Subject: [PATCH] sharing: fix the sensitivity of the "share with trusted devices" switch Allow the GSettings binding to set the sensitivity of the switch and use a box to allow the sharing panel to set the sensitivity of the switch and label without conflicting with the GSettings binding. https://bugzilla.gnome.org/show_bug.cgi?id=692220 --- panels/sharing/cc-sharing-panel.c | 3 +- panels/sharing/sharing.ui | 66 ++++++++++++++++++------------- 2 files changed, 40 insertions(+), 29 deletions(-) diff --git a/panels/sharing/cc-sharing-panel.c b/panels/sharing/cc-sharing-panel.c index 56e920a25..cf572490d 100644 --- a/panels/sharing/cc-sharing-panel.c +++ b/panels/sharing/cc-sharing-panel.c @@ -271,8 +271,7 @@ cc_sharing_panel_setup_bluetooth_sharing_dialog (CcSharingPanel *self) WID ("bluetooth-sharing-status-label")); cc_sharing_panel_bind_switch_to_widgets (WID ("share-public-folder-switch"), - WID ("only-share-trusted-devices-switch"), - WID ("only-share-trusted-devices-label"), + WID ("only-share-trusted-devices-box"), NULL); cc_sharing_panel_bind_switch_to_widgets (WID ("save-received-files-to-downloads-switch"), diff --git a/panels/sharing/sharing.ui b/panels/sharing/sharing.ui index 18c337018..322f19970 100644 --- a/panels/sharing/sharing.ui +++ b/panels/sharing/sharing.ui @@ -76,18 +76,6 @@ 1 - - - True - True - - - 1 - 2 - 1 - 1 - - True @@ -105,21 +93,6 @@ 1 - - - True - False - start - Only share with Trusted Devices - only-share-trusted-devices-switch - - - 0 - 2 - 1 - 1 - - True @@ -187,6 +160,45 @@ 1 + + + True + False + 6 + + + True + False + start + True + Only share with Trusted Devices + only-share-trusted-devices-switch + + + False + True + 0 + + + + + True + True + + + False + True + 1 + + + + + 0 + 2 + 2 + 1 + + False