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 1QnorF-0003X4-GH for garchives@archives.gentoo.org; Mon, 01 Aug 2011 09:32:21 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B5F2721C021; Mon, 1 Aug 2011 09:32:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 6B3FB21C021 for ; Mon, 1 Aug 2011 09:32:12 +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 C393A1BC028 for ; Mon, 1 Aug 2011 09:32:11 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id A09263C004 for ; Mon, 1 Aug 2011 09:32:10 +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: 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: ce7f2cb8673438aded35d9bade5ae487fb2a1f6e Date: Mon, 1 Aug 2011 09:32:10 +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: 42370f0813e638da2d6d70cf6cc969fa commit: ce7f2cb8673438aded35d9bade5ae487fb2a1f6e Author: wiktor w brodlo brodlo net> AuthorDate: Mon Aug 1 09:31:24 2011 +0000 Commit: Wiktor W Brodlo brodlo net> CommitDate: Mon Aug 1 09:31:24 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/anaconda.git;= a=3Dcommit;h=3Dce7f2cb8 iw/mirrorselect_gui.py: connect the toggle signal to the checkbutton --- iw/mirrorselect_gui.py | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/iw/mirrorselect_gui.py b/iw/mirrorselect_gui.py index c2c5caf..dacd225 100644 --- a/iw/mirrorselect_gui.py +++ b/iw/mirrorselect_gui.py @@ -80,7 +80,7 @@ class MirrorselectWindow(InstallWindow): for country in countries[region]: country_ts =3D self.treestore.append(region_ts, [gtk.Label(country),= "", "", ""]) for mirror in mirrors[country]: - self.addMirrorRow(self.treestore, country_ts, region, country, mirr= or, mirror_data[region][country][mirror], ) + cb =3D self.addMirrorRow(self.treestore, country_ts, region, countr= y, mirror, mirror_data[region][country][mirror], ) treeview =3D gtk.TreeView(self.treestore) url_column =3D gtk.TreeViewColumn(_("Mirror URL")) treeview.append_column(url_column) @@ -101,9 +101,15 @@ class MirrorselectWindow(InstallWindow): ipv4_column.add_attribute(text_cell, "text", 2) ipv6_column.add_attribute(text_cell, "text", 3) treeview.set_search_column(1) + url_cell.connect("toggled", self.toggleCB, cb) =09 xml.get_widget("mirrors_viewport").add(treeview) =09 + def toggleCB(self, cb): + if cb.get_active() =3D True + cb.set_active(False) + else + cb.set_active(True) =09 def addMirrorRow(self, ts, country_ts, region, country, mirror, data): cb =3D gtk.CheckButton(label=3Ddata["url"], use_underline=3DFalse) @@ -116,7 +122,8 @@ class MirrorselectWindow(InstallWindow): ipv6 =3D " ipv6" =09 ts.append(country_ts, [cb, mirror, ipv4, ipv6]) - ts.set(country_ts, COLUMN_EDITABLE, True) + return cb + =09 =09 def downloadMirrorlist(self): try: