online-desktop r7268 - trunk/weblogindriver/weblogindriver



Author: marinaz
Date: Wed Oct  1 16:47:10 2008
New Revision: 7268
URL: http://svn.gnome.org/viewvc/online-desktop?rev=7268&view=rev

Log:
Keep the list of online accounts sorted by the account type name.


Modified:
   trunk/weblogindriver/weblogindriver/accounts_dialog.py

Modified: trunk/weblogindriver/weblogindriver/accounts_dialog.py
==============================================================================
--- trunk/weblogindriver/weblogindriver/accounts_dialog.py	(original)
+++ trunk/weblogindriver/weblogindriver/accounts_dialog.py	Wed Oct  1 16:47:10 2008
@@ -56,6 +56,7 @@
         # self.__existing_accounts_vbox.pack_start(self.__no_accounts_label)
 
         self.__model = gtk.ListStore(gobject.TYPE_STRING)
+        self.__model.set_sort_column_id(0, gtk.SORT_ASCENDING)
         self.__accounts_combo = gtk.ComboBox(self.__model)
         self.__existing_accounts_vbox.pack_start(self.__accounts_combo, True, False)
         textrender = gtk.CellRendererText()
@@ -224,7 +225,6 @@
         gnome.url_show(urlparse.urljoin(ddm_util.get_baseurl(), "/account"))
       
     def __on_account_added(self, a_path):
-        # TODO: check for account type when we have a per-account dialog
         if a_path not in self.__model_tree_iter_by_account:
             a = self.__online_accounts_service.get_existing_account(a_path)
             if a is None:



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