Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
authorManuel Quiñones <manuq@laptop.org>2011-12-06 17:30:27 (GMT)
committer Manuel Quiñones <manuq@laptop.org>2011-12-06 17:30:27 (GMT)
commit35eceb936190b6c7ddf4055b909d4844be7bb2a1 (patch)
tree04964d4ff49e6bbaa095fcaf8cfbdee87c9b9fa4 /activity.py
parentca6d1266208daaedb99e3ded9d7b2bddb5c0b98c (diff)
Use other constructor for RadioButtons so they are in the same group
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/activity.py b/activity.py
index 0b50964..b4df023 100644
--- a/activity.py
+++ b/activity.py
@@ -129,9 +129,9 @@ class TestTheme3Activity(activity.Activity):
vbox1.pack_start(spin, False, False, 5)
hb_group = Gtk.HBox()
- item1 = Gtk.RadioButton(None, _('RadioBt 1'))
- item2 = Gtk.RadioButton(item1, _('RadioBt 2'))
- item3 = Gtk.RadioButton(item1, _('RadioBt 3'))
+ item1 = Gtk.RadioButton.new_with_label_from_widget(None, _('RadioBt 1'))
+ item2 = Gtk.RadioButton.new_with_label_from_widget(item1, _('RadioBt 2'))
+ item3 = Gtk.RadioButton.new_with_label_from_widget(item1, _('RadioBt 3'))
hb_group.pack_start(item1, False, False, 5)
hb_group.pack_start(item2, False, False, 5)