Organize global bar

This commit is contained in:
Kovid Goyal 2013-12-09 22:32:58 +05:30
parent 811a0e4866
commit 97ce7bf539

View File

@ -437,7 +437,10 @@ class Main(MainWindow):
return b return b
a = create(_('Book tool bar'), 'global').addAction a = create(_('Book tool bar'), 'global').addAction
for x in ('new_file', 'open_book', 'global_undo', 'global_redo', 'save', 'create_checkpoint', 'toc', 'check_book'): for x in ('new_file', 'open_book', None, 'global_undo', 'global_redo', 'create_checkpoint', 'save', None, 'toc', 'check_book'):
if x is None:
self.global_bar.addSeparator()
continue
a(getattr(self, 'action_' + x)) a(getattr(self, 'action_' + x))
self.donate_button = b = ThrobbingButton(self) self.donate_button = b = ThrobbingButton(self)
b.clicked.connect(lambda : open_url(QUrl('http://calibre-ebook.com/donate'))) b.clicked.connect(lambda : open_url(QUrl('http://calibre-ebook.com/donate')))