[gnome-control-center] sharing: Use a checkbutton in the "Screen Sharing" dialog



commit 8b689614315089781e604b8e76521c1e926bbdac
Author: Felipe Borges <felipeborges gnome org>
Date:   Thu May 26 11:54:54 2016 +0200

    sharing: Use a checkbutton in the "Screen Sharing" dialog
    
    According to the new designs at
    https://wiki.gnome.org/Design/SystemSettings/Sharing
    We should use a checkbutton instead of a switch for
    the "Allow connections to control the screen" option.
    Also, this commit changes this option label accordingly.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=767646

 panels/sharing/cc-sharing-panel.c |    2 +-
 panels/sharing/sharing.ui         |   12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/panels/sharing/cc-sharing-panel.c b/panels/sharing/cc-sharing-panel.c
index 4373bd6..128004a 100644
--- a/panels/sharing/cc-sharing-panel.c
+++ b/panels/sharing/cc-sharing-panel.c
@@ -1013,7 +1013,7 @@ cc_sharing_panel_setup_screen_sharing_dialog (CcSharingPanel *self)
 
   /* settings bindings */
   settings = g_settings_new (VINO_SCHEMA_ID);
-  g_settings_bind (settings, "view-only", WID ("remote-control-switch"),
+  g_settings_bind (settings, "view-only", WID ("remote-control-checkbutton"),
                    "active",
                    G_SETTINGS_BIND_DEFAULT | G_SETTINGS_BIND_INVERT_BOOLEAN);
   g_settings_bind (settings, "prompt-enabled",
diff --git a/panels/sharing/sharing.ui b/panels/sharing/sharing.ui
index 700e319..e011782 100644
--- a/panels/sharing/sharing.ui
+++ b/panels/sharing/sharing.ui
@@ -524,32 +524,32 @@
                       <object class="GtkBox" id="box6">
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
+                        <property name="spacing">6</property>
                         <child>
                           <object class="GtkLabel" id="remote-control-label">
                             <property name="visible">True</property>
                             <property name="can_focus">False</property>
                             <property name="halign">start</property>
                             <property name="hexpand">True</property>
-                            <property name="label" translatable="yes">_Allow Remote Control</property>
+                            <property name="label" translatable="yes">_Allow connections to control the 
screen</property>
                             <property name="use_underline">True</property>
-                            <property name="mnemonic_widget">remote-control-switch</property>
+                            <property name="mnemonic_widget">remote-control-checkbutton</property>
                           </object>
                           <packing>
                             <property name="expand">False</property>
                             <property name="fill">True</property>
-                            <property name="position">0</property>
+                            <property name="position">1</property>
                           </packing>
                         </child>
                         <child>
-                          <object class="GtkSwitch" id="remote-control-switch">
+                          <object class="GtkCheckButton" id="remote-control-checkbutton">
                             <property name="visible">True</property>
                             <property name="can_focus">True</property>
-                            <property name="halign">end</property>
                           </object>
                           <packing>
                             <property name="expand">False</property>
                             <property name="fill">True</property>
-                            <property name="position">1</property>
+                            <property name="position">0</property>
                           </packing>
                         </child>
                       </object>


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