1 |
commit: 37c0a1e34298fb64ba7043a4c0fc0f17309f1df5 |
2 |
Author: wiktor w brodlo <wiktor <AT> brodlo <DOT> net> |
3 |
AuthorDate: Mon Aug 1 01:24:16 2011 +0000 |
4 |
Commit: Wiktor W Brodlo <wiktor <AT> brodlo <DOT> net> |
5 |
CommitDate: Mon Aug 1 01:24:16 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/anaconda.git;a=commit;h=37c0a1e3 |
7 |
|
8 |
iw/mirrorselect_gui.py: rework the treeview render slightly |
9 |
|
10 |
--- |
11 |
iw/mirrorselect_gui.py | 25 +++++++++++++++++++++---- |
12 |
1 files changed, 21 insertions(+), 4 deletions(-) |
13 |
|
14 |
diff --git a/iw/mirrorselect_gui.py b/iw/mirrorselect_gui.py |
15 |
index 57ebf1b..e5a2b13 100644 |
16 |
--- a/iw/mirrorselect_gui.py |
17 |
+++ b/iw/mirrorselect_gui.py |
18 |
@@ -82,10 +82,27 @@ class MirrorselectWindow(InstallWindow): |
19 |
for mirror in mirrors[country]: |
20 |
self.addMirrorRow(self.treestore, country_ts, region, country, mirror, mirror_data[region][country][mirror], ) |
21 |
treeview = gtk.TreeView(self.treestore) |
22 |
- treeview.append_column(gtk.TreeViewColumn(_("Mirror URL"))) |
23 |
- treeview.append_column(gtk.TreeViewColumn(_("Mirror Name"))) |
24 |
- treeview.append_column(gtk.TreeViewColumn("IPv4?")) |
25 |
- treeview.append_column(gtk.TreeViewColumn("IPv6?")) |
26 |
+ url_column = gtk.TreeViewColumn(_("Mirror URL")) |
27 |
+ treeview.append_column(url_column) |
28 |
+ name_column = gtk.TreeViewColumn(_("Mirror Name")) |
29 |
+ treeview.append_column(name_column) |
30 |
+ ipv4_column = gtk.TreeViewColumn("IPv4?") |
31 |
+ treeview.append_column(ipv4_column) |
32 |
+ ipv6_column = gtk.TreeViewColumn("IPv6?") |
33 |
+ treeview.append_column(ipv6_column) |
34 |
+ url_cell = gtk.CellRendererToggle() |
35 |
+ text_cell = gtk.CellRendererText() |
36 |
+ url_column.pack_start(url_cell, True) |
37 |
+ name_column.pack_start(text_cell, True) |
38 |
+ ipv4_column.pack_start(text_cell, True) |
39 |
+ ipv6_column.pack_start(text_cell, True) |
40 |
+ url_column.add_attribute(url_cell, "activatable", 0) |
41 |
+ name_column.add_attribute(text_cell, "text", 1) |
42 |
+ ipv4_column.add_attribute(text_cell, "text", 2) |
43 |
+ ipv6_column.add_attribute(text_cell, "text", 3) |
44 |
+ treeview.set_search_column(1) |
45 |
+ treeview.set_sort_column_id(0) |
46 |
+ |
47 |
self.xml.get_widget("mirrors_viewport").add(treeview) |