From 7e597cde12e097d1099045f2ca15fa7ebc59f132 Mon Sep 17 00:00:00 2001 From: Chris Moore Date: Fri, 27 May 2011 23:31:27 -0700 Subject: [PATCH] Add a 'close' button to the 'Help' tab, just like all the other tabs. --- pyfpdb/fpdb.pyw | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pyfpdb/fpdb.pyw b/pyfpdb/fpdb.pyw index 7ce513e6..5547d740 100755 --- a/pyfpdb/fpdb.pyw +++ b/pyfpdb/fpdb.pyw @@ -194,13 +194,11 @@ class fpdb: except: pass - if nb.get_n_pages() > 0: - tabButton = gtk.Button() - - tabButton.connect('clicked', self.remove_tab, (nb, text)) - #Add a picture on a button - self.add_icon_to_button(tabButton) - tabBox.pack_start(tabButton, False) + tabButton = gtk.Button() + tabButton.connect('clicked', self.remove_tab, (nb, text)) + #Add a picture on a button + self.add_icon_to_button(tabButton) + tabBox.pack_start(tabButton, False) # needed, otherwise even calling show_all on the notebook won't # make the hbox contents appear. -- 2.11.4.GIT