1 |
commit: 3176718c5ff9bea0d3c5e419f204781bb0610604 |
2 |
Author: wiktor w brodlo <wiktor <AT> brodlo <DOT> net> |
3 |
AuthorDate: Mon Jul 4 22:24:15 2011 +0000 |
4 |
Commit: Wiktor W Brodlo <wiktor <AT> brodlo <DOT> net> |
5 |
CommitDate: Mon Jul 4 22:24:15 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/anaconda.git;a=commit;h=3176718c |
7 |
|
8 |
Enable actual profile selection |
9 |
|
10 |
--- |
11 |
anaconda | 1 + |
12 |
iw/profile_gui.py | 12 ++++++++++-- |
13 |
2 files changed, 11 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/anaconda b/anaconda |
16 |
index f785ef7..586aa3a 100755 |
17 |
--- a/anaconda |
18 |
+++ b/anaconda |
19 |
@@ -484,6 +484,7 @@ class Anaconda(object): |
20 |
self.methodstr = None |
21 |
self._network = None |
22 |
self._platform = None |
23 |
+ self.profile = None |
24 |
self.proxy = None |
25 |
self.proxyUsername = None |
26 |
self.proxyPassword = None |
27 |
|
28 |
diff --git a/iw/profile_gui.py b/iw/profile_gui.py |
29 |
index 79ed4a3..de3369e 100644 |
30 |
--- a/iw/profile_gui.py |
31 |
+++ b/iw/profile_gui.py |
32 |
@@ -36,6 +36,9 @@ _ = lambda x: gettext.ldgettext("anaconda", x) |
33 |
|
34 |
class ProfileWindow(InstallWindow): |
35 |
def getNext(self): |
36 |
+ for button is self.buttons: |
37 |
+ if button.get_property("active") |
38 |
+ self.anaconda.profile = button.get_property("label") |
39 |
return None |
40 |
|
41 |
def getScreen(self, anaconda): |
42 |
@@ -56,9 +59,14 @@ class ProfileWindow(InstallWindow): |
43 |
|
44 |
box = self.xml.get_widget("profiles_box") |
45 |
|
46 |
+ # This isn't on the page but is required to make a group dynamically. |
47 |
+ dummy = gtk.RadioButton(label=profile) |
48 |
+ |
49 |
for profile in profiles: |
50 |
- cb = gtk.CheckButton(label=profile) |
51 |
+ cb = gtk.RadioButton(dummy, label=profile) |
52 |
box.pack_start(cb) |
53 |
- |
54 |
+ |
55 |
+ self.buttons = dummy.get_group() |
56 |
+ |
57 |
return self.align |