[gnome-system-tools/users-ui-redesign: 5/12] Make users list expand as much as needed



commit 4d2b27df2370c92b03a85865fba9610e2accf003
Author: Milan Bouchet-Valat <nalimilan club fr>
Date:   Thu Aug 6 21:43:10 2009 +0200

    Make users list expand as much as needed
    
    Disable scrollbars for the users list and remove custom window sizing. Need to add a check in case the user name is too long and requires re-enalbing the scrollbars.

 interfaces/users.ui |    6 ++----
 src/users/main.c    |    5 -----
 2 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/interfaces/users.ui b/interfaces/users.ui
index 3bde9a3..f48c155 100644
--- a/interfaces/users.ui
+++ b/interfaces/users.ui
@@ -61,8 +61,6 @@
     <property name="page_increment">10</property>
   </object>
   <object class="GtkWindow" id="users_dialog">
-    <property name="default_width">652</property>
-    <property name="default_height">418</property>
     <child>
       <object class="GtkVBox" id="users_admin">
         <property name="visible">True</property>
@@ -76,8 +74,8 @@
               <object class="GtkScrolledWindow" id="users_table_sw">
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
-                <property name="hscrollbar_policy">automatic</property>
-                <property name="vscrollbar_policy">automatic</property>
+                <property name="hscrollbar_policy">never</property>
+                <property name="vscrollbar_policy">never</property>
                 <property name="shadow_type">etched-in</property>
                 <child>
                   <object class="GtkTreeView" id="users_table">
diff --git a/src/users/main.c b/src/users/main.c
index 150a492..6a7ad9c 100644
--- a/src/users/main.c
+++ b/src/users/main.c
@@ -90,11 +90,6 @@ main_window_prepare (GstUsersTool *tool)
 
 	/* For random password generation. */
 	srand (time (NULL));
-
-	/* This sucks, but calculating the needed size for simple mode based on the
-	 * hidden widgets plus the tabs size is going to be ugly. Chema
-	 */
-	gtk_window_set_default_size (GTK_WINDOW (GST_TOOL (tool)->main_dialog), 550, 300);
 }
 
 int



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