From 43be8ee67b0bba5ffc8589ac1bd23269ffffbd6b Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Fri, 25 Oct 2024 00:10:30 +0700 Subject: [PATCH] silence deprecation warning --- xpra/gtk/widget.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xpra/gtk/widget.py b/xpra/gtk/widget.py index c2706ad3d3..975aa49f45 100644 --- a/xpra/gtk/widget.py +++ b/xpra/gtk/widget.py @@ -171,7 +171,8 @@ def color_parse(*args) -> Gdk.Color | None: ok = v.parse(*args) if ok: return v.to_color() # pylint: disable=no-member - ok, v = Gdk.Color.parse(*args) + with IgnoreWarningsContext(): + ok, v = Gdk.Color.parse(*args) if ok: return v return None