[gnome-system-tools] Make users-admin dialog's initially wider and expand all columns



commit 28701698f1396a473be9a7462ecc25d52053baf9
Author: Milan Bouchet-Valat <nalimilan club fr>
Date:   Mon Jul 27 12:10:53 2009 +0200

    Make users-admin dialog's initially wider and expand all columns
    
    Using a wider window avoids showing the scrollbars with reasonably short user names and homes. Expanding all columns makes it nicer in case some sapce is not used.

 src/users/main.c        |    2 +-
 src/users/users-table.c |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/users/main.c b/src/users/main.c
index 42c2dfd..9ee802e 100644
--- a/src/users/main.c
+++ b/src/users/main.c
@@ -94,7 +94,7 @@ main_window_prepare (GstUsersTool *tool)
 	/* 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), 450, 300);
+	gtk_window_set_default_size (GTK_WINDOW (GST_TOOL (tool)->main_dialog), 550, 300);
 }
 
 int
diff --git a/src/users/users-table.c b/src/users/users-table.c
index d76fedb..49513c0 100644
--- a/src/users/users-table.c
+++ b/src/users/users-table.c
@@ -69,6 +69,7 @@ add_user_columns (GtkTreeView *treeview)
 							   "text", COL_USER_LOGIN,
 							   "sensitive", COL_USER_SENSITIVE,
 							    NULL);
+	gtk_tree_view_column_set_expand (column, TRUE);
 	gtk_tree_view_insert_column (treeview, column, -1);
 
 	/* Home directory */
@@ -78,6 +79,7 @@ add_user_columns (GtkTreeView *treeview)
 							   "text", COL_USER_HOME,
 							   "sensitive", COL_USER_SENSITIVE,
 							   NULL);
+	gtk_tree_view_column_set_expand (column, TRUE);
 	gtk_tree_view_insert_column (treeview, column, -1);
 }
 



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