Disable buttons in Note gramplets for empty database

svn: r16624
This commit is contained in:
Nick Hall 2011-02-15 16:56:34 +00:00
parent a0727582af
commit 88ed1aad13

View File

@ -44,8 +44,10 @@ class Notes(Gramplet):
hbox = gtk.HBox()
self.left = SimpleButton(gtk.STOCK_GO_BACK, self.left_clicked)
self.left.set_sensitive(False)
hbox.pack_start(self.left, False, False)
self.right = SimpleButton(gtk.STOCK_GO_FORWARD, self.right_clicked)
self.right.set_sensitive(False)
hbox.pack_start(self.right, False, False)
self.page = gtk.Label()
hbox.pack_end(self.page, False, False, 10)