From 210eaf09297cd3ae53cd71f81e8e1384ec0ef792 Mon Sep 17 00:00:00 2001 From: monsta Date: Mon, 19 Aug 2019 16:23:46 +0300 Subject: [PATCH] plugins: fix number of callback arguments (#236) * system management: fix number of callback arguments fixes runtime warning: TypeError: changePluginSize() takes exactly 4 arguments (3 given) looks like it was overlooked in https://github.com/linuxmint/mintmenu/commit/66f76df4d31488caa178d053dc53d52f29dca43d * places: remove leftover argument from callback --- usr/lib/linuxmint/mintMenu/plugins/places.py | 2 +- usr/lib/linuxmint/mintMenu/plugins/system_management.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/lib/linuxmint/mintMenu/plugins/places.py b/usr/lib/linuxmint/mintMenu/plugins/places.py index c47026d..0ba4d7e 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/places.py +++ b/usr/lib/linuxmint/mintMenu/plugins/places.py @@ -74,7 +74,7 @@ class pluginclass(object): if self.showtrash: self.refreshTrash() - def changePluginSize(self, settings, key, args = None): + def changePluginSize(self, settings, key): self.allowScrollbar = self.settings.get_boolean("allow-scrollbar") self.width = self.settings.get_int("width") if not self.allowScrollbar: diff --git a/usr/lib/linuxmint/mintMenu/plugins/system_management.py b/usr/lib/linuxmint/mintMenu/plugins/system_management.py index cae13af..5b5ef8c 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/system_management.py +++ b/usr/lib/linuxmint/mintMenu/plugins/system_management.py @@ -65,7 +65,7 @@ class pluginclass(object): def wake(self): pass - def changePluginSize(self, settings, key, args): + def changePluginSize(self, settings, key): self.allowScrollbar = self.settings.get_boolean("allow-scrollbar") if key == "width": self.width = settings.get_int(key)