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 66f76df4d3
* places: remove leftover argument from callback
This commit is contained in:
parent
99797f3a40
commit
210eaf0929
@ -74,7 +74,7 @@ class pluginclass(object):
|
|||||||
if self.showtrash:
|
if self.showtrash:
|
||||||
self.refreshTrash()
|
self.refreshTrash()
|
||||||
|
|
||||||
def changePluginSize(self, settings, key, args = None):
|
def changePluginSize(self, settings, key):
|
||||||
self.allowScrollbar = self.settings.get_boolean("allow-scrollbar")
|
self.allowScrollbar = self.settings.get_boolean("allow-scrollbar")
|
||||||
self.width = self.settings.get_int("width")
|
self.width = self.settings.get_int("width")
|
||||||
if not self.allowScrollbar:
|
if not self.allowScrollbar:
|
||||||
|
@ -65,7 +65,7 @@ class pluginclass(object):
|
|||||||
def wake(self):
|
def wake(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def changePluginSize(self, settings, key, args):
|
def changePluginSize(self, settings, key):
|
||||||
self.allowScrollbar = self.settings.get_boolean("allow-scrollbar")
|
self.allowScrollbar = self.settings.get_boolean("allow-scrollbar")
|
||||||
if key == "width":
|
if key == "width":
|
||||||
self.width = settings.get_int(key)
|
self.width = settings.get_int(key)
|
||||||
|
Loading…
Reference in New Issue
Block a user