[gtk/wip/matthiasc/popup5: 141/145] win32: Disconnect the frame clock
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup5: 141/145] win32: Disconnect the frame clock
- Date: Sun, 26 May 2019 19:13:34 +0000 (UTC)
commit cc1103d0b9d3d85513508c3a1072bd3099487309
Author: Matthias Clasen <mclasen redhat com>
Date: Fri May 24 10:55:06 2019 +0000
win32: Disconnect the frame clock
The frame clock can now survive the surface,
so we need to disconnect when the surface goes away.
gdk/win32/gdksurface-win32.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/gdk/win32/gdksurface-win32.c b/gdk/win32/gdksurface-win32.c
index e8df18b566..bad6006021 100644
--- a/gdk/win32/gdksurface-win32.c
+++ b/gdk/win32/gdksurface-win32.c
@@ -686,6 +686,10 @@ gdk_win32_surface_destroy (GdkSurface *window,
/* Remove ourself from the modal stack */
_gdk_remove_modal_window (window);
+ g_signal_handlers_disconnect_by_func (gdk_surface_get_frame_clock (window),
+ gdk_win32_impl_frame_clock_after_paint,
+ window);
+
/* Remove all our transient children */
while (surface->transient_children != NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]