diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-02-18 22:42:10 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-02-18 22:42:10 +0100 |
commit | 1644d262d2c577b1592a60914ec034a1e91171b7 (patch) | |
tree | e9eeca29c812425c728095bc8e0d5c46deb14714 /portato/gui | |
parent | af31f8ecc8465984d7dfc7b824ff5f8ca037a37a (diff) | |
download | portato-1644d262d2c577b1592a60914ec034a1e91171b7.tar.gz portato-1644d262d2c577b1592a60914ec034a1e91171b7.tar.bz2 portato-1644d262d2c577b1592a60914ec034a1e91171b7.zip |
Add dummy signal handlers for PackageTable -- and so also the error output for not connected signals
Diffstat (limited to '')
-rw-r--r-- | portato/gui/windows/basic.py | 6 | ||||
-rw-r--r-- | portato/gui/windows/main.py | 13 |
2 files changed, 17 insertions, 2 deletions
diff --git a/portato/gui/windows/basic.py b/portato/gui/windows/basic.py index 330f823..9d1b9ed 100644 --- a/portato/gui/windows/basic.py +++ b/portato/gui/windows/basic.py @@ -52,7 +52,11 @@ class UIBuilder (object): if connector is None: connector = self - self._builder.connect_signals(connector) + unconnected = self._builder.connect_signals(connector) + + if unconnected is not None: + for uc in set(unconnected): + error("Signal '%s' not connected in class '%s'.", uc, self.__class__.__name__) self.tree = WrappedTree(self.__class__.__name__, self._builder) diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py index 33a5ee4..b7a5802 100644 --- a/portato/gui/windows/main.py +++ b/portato/gui/windows/main.py @@ -62,7 +62,6 @@ class PackageTable: self.main = main self.tree = main.tree self.window = main.window - self.main._builder.connect_signals(self) # all the package data is in this one VB self.vb = self.tree.get_widget("packageVB") @@ -1834,6 +1833,18 @@ class MainWindow (Window): else: self.window.iconify() + def cb_testing_toggled (self, *args): + return self.packageTable.cb_testing_toggled(*args) + def cb_masked_toggled (self, *args): + return self.packageTable.cb_masked_toggled(*args) + def cb_button_pressed (self, *args): + return self.packageTable.cb_button_pressed(*args) + def cb_package_revert_clicked (self, *args): + return self.packageTable.cb_package_revert_clicked(*args) + def cb_package_unmerge_clicked (self, *args): + return self.packageTable.cb_package_unmerge_clicked(*args) + def cb_package_emerge_clicked (self, *args): + return self.packageTable.cb_package_emerge_clicked(*args) def cb_use_flag_toggled (self, *args): return self.packageTable.cb_use_flag_toggled(*args) |