Xpra: Ticket #325: TypeError: send_min_quality() takes exactly 1 argument (2 given)

I see this error at the client. It looks like a code change. Here's a patch to fix it. I hope that I understood the use of the min_quality attribute correctly.

Index: xpra/platform/client_extras_base.py
===================================================================
--- xpra/platform/client_extras_base.py	(revision 3140)
+++ xpra/platform/client_extras_base.py	(working copy)
@@ -672,7 +672,7 @@
             if q!=self.client.min_quality:
                 log.debug("setting minimum picture quality to %s", q)
                 self.client.min_quality = q
-                self.client.send_min_quality(q)
+                self.client.send_min_quality()
         for q in sorted(quality_options):
             qi = CheckMenuItem("%s%%" % q)
             qi.set_draw_as_radio(True)
Index: xpra/client.py
===================================================================
--- xpra/client.py	(revision 3140)
+++ xpra/client.py	(working copy)
@@ -233,8 +233,8 @@
                 q -= 10
             elif bw < self.max_bandwidth:
                 q += 5
-            q = max(10, min(95 ,q))
-            self.send_min_quality(q)
+            self.min_quality = max(10, min(95 ,q))
+            self.send_min_quality()
             return True
         if (self.max_bandwidth):
             self.last_input_bytecount = 0


Wed, 24 Apr 2013 14:07:21 GMT - Antoine Martin: status, component changed; resolution set

Spot on!

Applied in r3141 - Thanks!


Sat, 23 Jan 2021 04:51:45 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/325