Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Kaufmann <humitos@gmail.com>2012-08-13 14:58:47 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-09-26 14:28:15 (GMT)
commit352c76c78507221faf789dc8636ff26653c94cf0 (patch)
treea0f4cab596db0e26df673f49c947961738d8f6fc
parent95550e2f1d9c215f0fa86adc4af6ed3549612fdf (diff)
Edit Lesson Radio Button
After the port to Gtk3 these radio buttons stop working. This commit fixes this issue. Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
-rw-r--r--editlessonscreen.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/editlessonscreen.py b/editlessonscreen.py
index d81d250..2ba6449 100644
--- a/editlessonscreen.py
+++ b/editlessonscreen.py
@@ -288,10 +288,11 @@ class EditLessonScreen(Gtk.VBox):
typelabel.set_alignment(0.0, 0.5)
typelabel.set_padding(20, 0)
- self.textradio = Gtk.RadioButton(None, _('Normal Lesson'))
+ self.textradio = Gtk.RadioButton(_('Normal Lesson'))
self.textradio.connect('toggled', self.type_toggled_cb)
- self.balloonradio = Gtk.RadioButton(self.textradio, _('Balloon Game'))
+ self.balloonradio = Gtk.RadioButton.new_with_label_from_widget(
+ self.textradio, _('Balloon Game'))
self.balloonradio.connect('toggled', self.type_toggled_cb)
self.textradio.set_active(self.lesson['type'] == 'normal')