[sabayon] Commit: Users dialog now sorts users by username



This rather boring patch makes the usersdialog much more useable on
machines with a large number of users (such as my workstation, which
is hooked up to a largish LDAP directory).
-- 
William Lachance
wrlach gmail com
? depcomp
? py-compile
? sabayon-usersdialog.patch
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/sabayon/ChangeLog,v
retrieving revision 1.239
diff -u -p -u -r1.239 ChangeLog
--- ChangeLog	3 Jul 2005 09:32:03 -0000	1.239
+++ ChangeLog	11 Jul 2005 04:29:04 -0000
@@ -1,3 +1,11 @@
+2005-07-11  William Lachance  <wrlach gmail com>
+
+	* admin-tool/usersdialog.py: Sort by name of user.
+
+	* admin-tool/sabayon.glade: Increase default width
+	of users dialog to 440 from 400 (eliminates need for
+	horizontal scrollbar in most cases)
+
 Sun Jul  3 11:31:26 CEST 2005 Daniel Veillard <veillard redhat com>
 
 	* po/POTFILES.in: adding missing admin-tool/changeswindow.py
Index: admin-tool/sabayon.glade
===================================================================
RCS file: /cvs/gnome/sabayon/admin-tool/sabayon.glade,v
retrieving revision 1.18
diff -u -p -u -r1.18 sabayon.glade
--- admin-tool/sabayon.glade	30 Jun 2005 12:39:15 -0000	1.18
+++ admin-tool/sabayon.glade	11 Jul 2005 04:29:04 -0000
@@ -576,7 +576,7 @@
   <property name="type">GTK_WINDOW_TOPLEVEL</property>
   <property name="window_position">GTK_WIN_POS_NONE</property>
   <property name="modal">False</property>
-  <property name="default_width">400</property>
+  <property name="default_width">440</property>
   <property name="default_height">300</property>
   <property name="resizable">True</property>
   <property name="destroy_with_parent">False</property>
@@ -688,7 +688,7 @@
 	    <widget class="GtkScrolledWindow" id="users_list_scroll">
 	      <property name="visible">True</property>
 	      <property name="can_focus">True</property>
-	      <property name="hscrollbar_policy">GTK_POLICY_ALWAYS</property>
+	      <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
 	      <property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property>
 	      <property name="shadow_type">GTK_SHADOW_NONE</property>
 	      <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
Index: admin-tool/usersdialog.py
===================================================================
RCS file: /cvs/gnome/sabayon/admin-tool/usersdialog.py,v
retrieving revision 1.4
diff -u -p -u -r1.4 usersdialog.py
--- admin-tool/usersdialog.py	9 Jun 2005 09:16:25 -0000	1.4
+++ admin-tool/usersdialog.py	11 Jul 2005 04:29:04 -0000
@@ -85,7 +85,10 @@ class UsersDialog:
         c = gtk.TreeViewColumn (_("Name"),
                                 gtk.CellRendererText (),
                                 text = UsersModel.COLUMN_NAME)
+        c.set_sort_column_id(UsersModel.COLUMN_NAME)        
         self.users_list.append_column (c)
+        self.users_model.set_sort_column_id(UsersModel.COLUMN_NAME, gtk.SORT_ASCENDING)
+
 
         toggle = gtk.CellRendererToggle ()
         toggle.connect ("toggled", self.__on_use_toggled)


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