From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QnhGW-00033u-GM for garchives@archives.gentoo.org; Mon, 01 Aug 2011 01:25:56 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8EEF021C0D6; Mon, 1 Aug 2011 01:24:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 8FC7321C0D6 for ; Mon, 1 Aug 2011 01:24:36 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 91F262AC00C for ; Mon, 1 Aug 2011 01:24:30 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id D55543C004 for ; Mon, 1 Aug 2011 01:24:29 +0000 (UTC) From: "Wiktor W Brodlo" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Wiktor W Brodlo" Message-ID: <37c0a1e34298fb64ba7043a4c0fc0f17309f1df5.wiktor@gentoo> Subject: [gentoo-commits] proj/anaconda:master commit in: iw/ X-VCS-Repository: proj/anaconda X-VCS-Files: iw/mirrorselect_gui.py X-VCS-Directories: iw/ X-VCS-Committer: wiktor X-VCS-Committer-Name: Wiktor W Brodlo X-VCS-Revision: 37c0a1e34298fb64ba7043a4c0fc0f17309f1df5 Date: Mon, 1 Aug 2011 01:24:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: ab56b8605b70f7613590757338f64159 commit: 37c0a1e34298fb64ba7043a4c0fc0f17309f1df5 Author: wiktor w brodlo brodlo net> AuthorDate: Mon Aug 1 01:24:16 2011 +0000 Commit: Wiktor W Brodlo brodlo net> CommitDate: Mon Aug 1 01:24:16 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/anaconda.git;= a=3Dcommit;h=3D37c0a1e3 iw/mirrorselect_gui.py: rework the treeview render slightly --- iw/mirrorselect_gui.py | 25 +++++++++++++++++++++---- 1 files changed, 21 insertions(+), 4 deletions(-) diff --git a/iw/mirrorselect_gui.py b/iw/mirrorselect_gui.py index 57ebf1b..e5a2b13 100644 --- a/iw/mirrorselect_gui.py +++ b/iw/mirrorselect_gui.py @@ -82,10 +82,27 @@ class MirrorselectWindow(InstallWindow): for mirror in mirrors[country]: self.addMirrorRow(self.treestore, country_ts, region, country, mirr= or, mirror_data[region][country][mirror], ) treeview =3D gtk.TreeView(self.treestore) - treeview.append_column(gtk.TreeViewColumn(_("Mirror URL"))) - treeview.append_column(gtk.TreeViewColumn(_("Mirror Name"))) - treeview.append_column(gtk.TreeViewColumn("IPv4?")) - treeview.append_column(gtk.TreeViewColumn("IPv6?")) + url_column =3D gtk.TreeViewColumn(_("Mirror URL")) + treeview.append_column(url_column) + name_column =3D gtk.TreeViewColumn(_("Mirror Name")) + treeview.append_column(name_column) + ipv4_column =3D gtk.TreeViewColumn("IPv4?") + treeview.append_column(ipv4_column) + ipv6_column =3D gtk.TreeViewColumn("IPv6?") + treeview.append_column(ipv6_column) + url_cell =3D gtk.CellRendererToggle() + text_cell =3D gtk.CellRendererText() + url_column.pack_start(url_cell, True) + name_column.pack_start(text_cell, True) + ipv4_column.pack_start(text_cell, True) + ipv6_column.pack_start(text_cell, True) + url_column.add_attribute(url_cell, "activatable", 0) + name_column.add_attribute(text_cell, "text", 1) + ipv4_column.add_attribute(text_cell, "text", 2) + ipv6_column.add_attribute(text_cell, "text", 3) + treeview.set_search_column(1) + treeview.set_sort_column_id(0) + =09 self.xml.get_widget("mirrors_viewport").add(treeview) =09 =09