Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/library.py
diff options
context:
space:
mode:
Diffstat (limited to 'library.py')
-rw-r--r--library.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/library.py b/library.py
index 3a61420..86bde44 100644
--- a/library.py
+++ b/library.py
@@ -223,8 +223,11 @@ class ToolbarBuilder():
self.publish = ToolButton('export-to-journal',
tooltip=_('Publish selected articles'))
self.publish.connect("clicked", self._publish_clicked_cb)
- toolbar.insert(self.publish, -1)
+ if hasattr(toolbar, 'insert'): # Add button to the main toolbar...
+ toolbar.insert(self.publish, -1)
+ else: # ...or a secondary toolbar.
+ toolbar.props.page.insert(self.publish, -1)
def _publish_clicked_cb(self, widget):
xol.publish(self.activity)