diff options
author | Aleksey 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) |
commit | 4d4d9054e25cb13e6b828327f9c680d4ce9c7bca (patch) | |
tree | 2844d69937df13f8bbca1f7620b4536b757184a6 /edit.py | |
parent | aeaff165cd66fc48d6d794aa6a506c878a7af83b (diff) |
Recode library tab to adopt new scheme w/o themes
Diffstat (limited to 'edit.py')
-rw-r--r-- | edit.py | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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) |