Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/edit.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-02-27 15:56:52 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2009-03-02 14:45:11 (GMT)
commit4d4d9054e25cb13e6b828327f9c680d4ce9c7bca (patch)
tree2844d69937df13f8bbca1f7620b4536b757184a6 /edit.py
parentaeaff165cd66fc48d6d794aa6a506c878a7af83b (diff)
Recode library tab to adopt new scheme w/o themes
Diffstat (limited to 'edit.py')
-rw-r--r--edit.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/edit.py b/edit.py
index 8089bdb..856966f 100644
--- a/edit.py
+++ b/edit.py
@@ -42,8 +42,11 @@ class View(gtk.Notebook):
def _map_cb(self, widget):
index = self.get_current_page()
- TABS[index].set_source_article(book.wiki.article)
- TABS[index].set_working_article(book.custom.article)
+
+ if book.wiki.article:
+ TABS[index].set_source_article(book.wiki.article)
+ if book.custom.article:
+ TABS[index].set_working_article(book.custom.article)
class Toolbar(gtk.Toolbar):
def __init__(self, edit):
@@ -88,7 +91,9 @@ class Toolbar(gtk.Toolbar):
for i in TABS[index].toolitems:
i.show()
- TABS[index].set_source_article(book.wiki.article)
- TABS[index].set_working_article(book.custom.article)
+ if book.wiki.article:
+ TABS[index].set_source_article(book.wiki.article)
+ if book.custom.article:
+ TABS[index].set_working_article(book.custom.article)
self.edit.set_current_page(index)