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 4e7dd10

Browse filesBrowse files
committed
FIX: do not use deprecated API in gtk4 backend
closes #24602
1 parent ab7917a commit 4e7dd10
Copy full SHA for 4e7dd10

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed

‎lib/matplotlib/backends/backend_gtk4.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_gtk4.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
import matplotlib as mpl
66
from matplotlib import _api, backend_tools, cbook
77
from matplotlib.backend_bases import (
8-
ToolContainerBase, KeyEvent, LocationEvent, MouseEvent, ResizeEvent)
8+
ToolContainerBase, KeyEvent, LocationEvent, MouseEvent, ResizeEvent,
9+
CloseEvent)
910

1011
try:
1112
import gi
@@ -79,7 +80,7 @@ def __init__(self, figure=None):
7980
style_ctx.add_class("matplotlib-canvas")
8081

8182
def destroy(self):
82-
self.close_event()
83+
CloseEvent("close_event", self)._process()
8384

8485
def set_cursor(self, cursor):
8586
# docstring inherited

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.