Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/editlessonscreen.py
diff options
context:
space:
mode:
Diffstat (limited to 'editlessonscreen.py')
-rw-r--r--editlessonscreen.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/editlessonscreen.py b/editlessonscreen.py
index bf9677a..c8d9328 100644
--- a/editlessonscreen.py
+++ b/editlessonscreen.py
@@ -378,22 +378,30 @@ class EditLessonScreen(gtk.VBox):
def add_step_clicked_cb(self, btn, index):
step = { 'instructions': '', 'text': '' }
self.lesson['steps'].insert(index, step)
+
+ self.save()
self.build()
def del_step_clicked_cb(self, btn, index):
self.lesson['steps'].pop(index)
+
+ self.save()
self.build()
def move_step_up_clicked_cb(self, btn, index):
if index > 0:
step = self.lesson['steps'].pop(index)
self.lesson['steps'].insert(index-1, step)
+
+ self.save()
self.build()
def move_step_down_clicked_cb(self, btn, index):
if index < len(self.lesson['steps']) - 1:
step = self.lesson['steps'].pop(index)
self.lesson['steps'].insert(index+1, step)
+
+ self.save()
self.build()
def type_toggled_cb(self, btn):
@@ -401,8 +409,5 @@ class EditLessonScreen(gtk.VBox):
if self.in_build:
return
- if self.textradio.get_active():
- self.lesson['type'] = 'normal'
- if self.balloonradio.get_active():
- self.lesson['type'] = 'balloon'
+ self.save()
self.build()