summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2015-03-30 14:31:25 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2015-03-30 14:31:25 +0300
commit078f35dda33f82c58714cd697bc655868f68d22f (patch)
tree70706286cf1003c988f6fb095351fc8fdb59a823
parent04a96fbacd36c0e5c76f30303e393f4fef276ad0 (diff)
Mark document pages changed when tab is selected
-rw-r--r--lekha/app.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lekha/app.py b/lekha/app.py
index f40b299..81aa117 100644
--- a/lekha/app.py
+++ b/lekha/app.py
@@ -100,6 +100,11 @@ class AppWindow(StandardWindow):
100 # "tab,added", lambda x, y: self.title_set(y.doc_title)) 100 # "tab,added", lambda x, y: self.title_set(y.doc_title))
101 tabs.callback_add( 101 tabs.callback_add(
102 "tab,selected", lambda x, y: self.title_set(y.doc_title)) 102 "tab,selected", lambda x, y: self.title_set(y.doc_title))
103 def selected_cb(tabs, content):
104 for c in content.page_box:
105 c.changed()
106 tabs.callback_add(
107 "tab,selected", selected_cb)
103 tabs.callback_add( 108 tabs.callback_add(
104 "tab,deleted", lambda x, y: y.delete()) 109 "tab,deleted", lambda x, y: y.delete())
105 110