Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremie Laval <jeremie.laval@gmail.com>2016-09-14 02:03:49 +0300
committerJeremie Laval <jeremie.laval@gmail.com>2016-09-14 02:03:49 +0300
commit649d0c263677049ed1803fea8a9fe6df5229115d (patch)
tree5adce1af11677cb9cb6c11ae07d445a4b62b7c0c /Xwt.Gtk.Windows
parent2c2b5ae741c6dab6f642a34b2597bd64cf2bdb6b (diff)
[Xwt.Gtk] Unsubscribe handlers from WPF when destroying interop widget
Diffstat (limited to 'Xwt.Gtk.Windows')
-rw-r--r--Xwt.Gtk.Windows/GtkWin32Interop.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Xwt.Gtk.Windows/GtkWin32Interop.cs b/Xwt.Gtk.Windows/GtkWin32Interop.cs
index aa7d3673..2c6c2597 100644
--- a/Xwt.Gtk.Windows/GtkWin32Interop.cs
+++ b/Xwt.Gtk.Windows/GtkWin32Interop.cs
@@ -284,6 +284,8 @@ namespace Xwt.Gtk.Windows
{
base.OnDestroyed ();
+ wpfControl.GotKeyboardFocus -= OnGotFocus;
+ wpfControl.KeyDown -= OnKeyDown;
wpfWidgetHost.Dispose ();
}