From 352c76c78507221faf789dc8636ff26653c94cf0 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Mon, 13 Aug 2012 14:58:47 +0000 Subject: Edit Lesson Radio Button After the port to Gtk3 these radio buttons stop working. This commit fixes this issue. Signed-off-by: Manuel Kaufmann --- 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') -- cgit v0.9.1