[gnome-control-center] sharing: Move "Remote Login" switch to headerbar



commit 8e414f88b198dc36c91740280a88697aad8849ae
Author: Felipe Borges <felipeborges gnome org>
Date:   Thu May 26 12:19:08 2016 +0200

    sharing: Move "Remote Login" switch to headerbar
    
    According to the new designs at
    https://wiki.gnome.org/Design/SystemSettings/Sharing
    
    https://bugzilla.gnome.org/show_bug.cgi?id=767646

 panels/sharing/sharing.ui |   48 +++++++++++++++------------------------------
 1 files changed, 16 insertions(+), 32 deletions(-)
---
diff --git a/panels/sharing/sharing.ui b/panels/sharing/sharing.ui
index e011782..113abd9 100644
--- a/panels/sharing/sharing.ui
+++ b/panels/sharing/sharing.ui
@@ -421,38 +421,6 @@
                     <property name="height">1</property>
                   </packing>
                 </child>
-                <child>
-                  <object class="GtkSwitch" id="remote-login-switch">
-                    <property name="visible">True</property>
-                    <property name="can_focus">True</property>
-                    <property name="halign">end</property>
-                  </object>
-                  <packing>
-                    <property name="left_attach">1</property>
-                    <property name="top_attach">1</property>
-                    <property name="width">1</property>
-                    <property name="height">1</property>
-                  </packing>
-                </child>
-                <child>
-                  <object class="GtkLabel" id="label19">
-                    <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">Remote Login</property>
-                   <property name="mnemonic_widget">remote-login-switch</property>
-                    <attributes>
-                     <attribute name="weight" value="bold"/>
-                    </attributes>
-                  </object>
-                  <packing>
-                    <property name="left_attach">0</property>
-                    <property name="top_attach">1</property>
-                    <property name="width">1</property>
-                    <property name="height">1</property>
-                  </packing>
-                </child>
               </object>
               <packing>
                 <property name="expand">False</property>
@@ -469,6 +437,22 @@
         </child>
       </object>
     </child>
+    <child type="titlebar">
+      <object class="GtkHeaderBar" id="remote-login-headerbar">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="title" translatable="yes">Remote Login</property>
+        <property name="show_close_button">True</property>
+        <child>
+          <object class="GtkSwitch" id="remote-login-switch">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="valign">center</property>
+          </object>
+        </child>
+      </object>
+    </child>
+
   </object>
   <object class="GtkDialog" id="screen-sharing-dialog">
     <property name="can_focus">False</property>


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