Skip to content

Commit

Permalink
silence deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Oct 26, 2024
1 parent 42e039e commit 43be8ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xpra/gtk/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 43be8ee

Please sign in to comment.