[gnome-control-center/wip/feborges/new-users-panel] user-accounts: Remove unnecessary autologin-box



commit ca4f621fa8369608f0542ebaae858630d119659d
Author: Felipe Borges <felipeborges gnome org>
Date:   Wed Jul 13 11:41:34 2016 +0200

    user-accounts: Remove unnecessary autologin-box

 panels/user-accounts/data/user-accounts-dialog.ui |   20 +++-----------------
 panels/user-accounts/um-user-panel.c              |    2 +-
 2 files changed, 4 insertions(+), 18 deletions(-)
---
diff --git a/panels/user-accounts/data/user-accounts-dialog.ui 
b/panels/user-accounts/data/user-accounts-dialog.ui
index 76b54fd..cbe3b7b 100644
--- a/panels/user-accounts/data/user-accounts-dialog.ui
+++ b/panels/user-accounts/data/user-accounts-dialog.ui
@@ -204,23 +204,10 @@
                           </packing>
                         </child>
                         <child>
-                          <object class="GtkBox" id="autologin-box">
+                          <object class="GtkSwitch" id="autologin-switch">
                             <property name="visible">True</property>
-                            <property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
-                            <child>
-                              <object class="GtkSwitch" id="autologin-switch">
-                                <property name="visible">True</property>
-                                <property name="valign">GTK_ALIGN_CENTER</property>
-                              </object>
-                              <packing>
-                                <property name="expand">False</property>
-                                <property name="fill">False</property>
-                                <property name="position">0</property>
-                              </packing>
-                            </child>
-                            <child>
-                              <placeholder/>
-                            </child>
+                            <property name="valign">GTK_ALIGN_CENTER</property>
+                            <property name="halign">GTK_ALIGN_START</property>
                           </object>
                           <packing>
                             <property name="left_attach">1</property>
@@ -445,7 +432,6 @@
       <widget name="account-password-button"/>
       <widget name="account-type-box"/>
       <widget name="account-type-static"/>
-      <widget name="autologin-box"/>
       <widget name="last-login-value-label"/>
     </widgets>
   </object>
diff --git a/panels/user-accounts/um-user-panel.c b/panels/user-accounts/um-user-panel.c
index fd11d00..ab83d44 100644
--- a/panels/user-accounts/um-user-panel.c
+++ b/panels/user-accounts/um-user-panel.c
@@ -777,7 +777,7 @@ show_user (ActUser *user, CcUserPanelPrivate *d)
         gtk_widget_set_visible (widget, show);
 
         /* Autologin: show when local account */
-        widget = get_widget (d, "autologin-box");
+        widget = get_widget (d, "autologin-switch");
         label = get_widget (d, "autologin-label");
         show = act_user_is_local_account (user);
         gtk_widget_set_visible (widget, show);


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