Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSayamindu Dasgupta <sayamindu@gmail.com>2009-02-15 23:17:55 (GMT)
committer Sayamindu Dasgupta <sayamindu@gmail.com>2009-02-15 23:17:55 (GMT)
commitad9a4d59d2a62dac7d3f1768d9dc1be37cd9b666 (patch)
tree5188bf941cf0a5c7a100fdb1c84539c8f6bcec22
parent2005d4dab860aec917e01ed90ec2e6f1eb58d6e2 (diff)
Do not show ToC combobox in case document does not have ToC
-rw-r--r--readtoolbar.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/readtoolbar.py b/readtoolbar.py
index 018ca8f..aa22b3b 100644
--- a/readtoolbar.py
+++ b/readtoolbar.py
@@ -229,12 +229,12 @@ class ReadToolbar(gtk.Toolbar):
cell = gtk.CellRendererText()
self._navigator.pack_start(cell, True)
self._navigator.add_attribute(cell, 'text', 0)
- self._navigator.props.sensitive = False
+ self._navigator.props.visible = False
navitem.add(self._navigator)
self.insert(navitem, -1)
- navitem.show_all()
+ navitem.show()
def set_document(self, document):
@@ -289,7 +289,7 @@ class ReadToolbar(gtk.Toolbar):
def _update_toc(self):
if hasattr(self._document, 'has_document_links'):
if self._document.has_document_links():
- self._navigator.props.sensitive = True
+ self._navigator.show_all()
self._toc_model = self._document.get_links_model()
self._navigator.set_model(self._toc_model)