diff options
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) |