Skip to content

Commit 0ad6ce0

Browse files
committed
FIX: Don't set_wmclass on GTK3
The method is deprecated, and according to docs should just not be used: https://docs.gtk.org/gtk3/method.Window.set_wmclass.html The docs suggest gtk_window_set_role(), but AFAICS this is only helpful if one want to place the window in a certain position when restarting a session. I assume we don't want/need that.
1 parent 202a277 commit 0ad6ce0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/matplotlib/backends/_backend_gtk.py

-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ def __init__(self, canvas, num):
143143
super().__init__(canvas, num)
144144

145145
if gtk_ver == 3:
146-
self.window.set_wmclass("matplotlib", "Matplotlib")
147146
icon_ext = "png" if sys.platform == "win32" else "svg"
148147
self.window.set_icon_from_file(
149148
str(cbook._get_data_path(f"images/matplotlib.{icon_ext}")))

0 commit comments

Comments
 (0)