Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0ad6ce0

Browse filesBrowse 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
Copy full SHA for 0ad6ce0

File tree

1 file changed

+0
-1
lines changed
Filter options

1 file changed

+0
-1
lines changed

‎lib/matplotlib/backends/_backend_gtk.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/_backend_gtk.py
-1Lines changed: 0 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.