From 6f0c3922c9da11e69751a24de252bfad6500d692 Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Tue, 12 Aug 2008 21:05:11 +0000 Subject: [PATCH] Keep the archive and extract button visible. Bug #2316. svn: r10979 --- src/DbManager.py | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/src/DbManager.py b/src/DbManager.py index 6cf273305..f3de57874 100644 --- a/src/DbManager.py +++ b/src/DbManager.py @@ -100,7 +100,7 @@ DSORT_COL = 4 OPEN_COL = 5 STOCK_COL = 6 -RCS_BUTTON = { True : _('Extract'), False : _('Archive') } +RCS_BUTTON = { True : _('_Extract'), False : _('_Archive') } class CLIDbManager: """ @@ -421,8 +421,6 @@ class DbManager(CLIDbManager): buttons are disabled, and the Open button is disabled if the row represents a open database. """ - if not _RCS_FOUND: - self.rcs.hide() # Get the current selection store, node = selection.get_selected() @@ -441,24 +439,18 @@ class DbManager(CLIDbManager): return is_rev = len(path) > 1 + self.rcs.set_label(RCS_BUTTON[is_rev]) if store.get_value(node, STOCK_COL) == gtk.STOCK_OPEN: self.connect.set_sensitive(False) if _RCS_FOUND: - self.rcs.show() + self.rcs.set_sensitive(True) else: self.connect.set_sensitive(not is_rev) if _RCS_FOUND and is_rev: - self.rcs.show() + self.rcs.set_sensitive(True) else: - self.rcs.hide() - - if store.get_value(node, STOCK_COL) == gtk.STOCK_OPEN: - self.connect.set_sensitive(False) - self.rcs.set_sensitive(True) - else: - self.connect.set_sensitive(not is_rev) - self.rcs.set_sensitive(is_rev) + self.rcs.set_sensitive(False) if store.get_value(node, STOCK_COL) == gtk.STOCK_DIALOG_ERROR: path = store.get_value(node, PATH_COL)