Package: galternatives
Version: 0.11
Severity: wishlist
Tags: patch

Priorities in options_tv should be sorted by numeric order,
and I want to be right-justified.

--- /usr/lib/python2.3/site-packages/galternatives/main.py      2004-12-08 
10:55:37.000000000 +0900
+++ galternatives/main.py       2005-03-23 17:23:00.782119753 +0900
@@ -99,7 +99,7 @@
         # tree for options for each alternative
         self.options_tv = self.gui.get_widget ('options_tv')
         self.options_model = gtk.TreeStore (gobject.TYPE_BOOLEAN,
-                                            gobject.TYPE_STRING,
+                                            gobject.TYPE_INT,
                                             gobject.TYPE_STRING)
         self.options_model.set_sort_column_id (self.PRIORITY,
                                                gtk.SORT_DESCENDING)
@@ -319,6 +319,7 @@
         self.options_tv.append_column (column)
 
         cell_renderer = gtk.CellRendererText ()
+        cell_renderer.set_property ('xalign', 0.9)
         column = gtk.TreeViewColumn (_('Priority'), cell_renderer,
                                      text=self.PRIORITY)
         column.set_sort_order (gtk.SORT_DESCENDING)
@@ -394,7 +395,7 @@
             iter = self.options_model.append (None)
             self.options_model.set (iter,
                                     self.CHOICE, is_chosen,
-                                    self.PRIORITY, option['priority'],
+                                    self.PRIORITY, int(option['priority']),
                                     self.OPTIONS, option['path'])
 
         # selects the first alternative on the list


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.9
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP)

Versions of packages galternatives depends on:
ii  python                        2.3.5-1    An interactive high-level object-o
ii  python-glade2                 2.4.1-2    GTK+ bindings: Glade support

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to