[gtk/wip/matthiasc/popup5: 230/234] win32: Disconnect the frame clock
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup5: 230/234] win32: Disconnect the frame clock
- Date: Mon, 27 May 2019 13:41:27 +0000 (UTC)
commit 527f0e0cc539f586da0c2fea646da4a72aba048b
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]