diff options
author | Jeremie Laval <jeremie.laval@gmail.com> | 2016-09-14 02:03:49 +0300 |
---|---|---|
committer | Jeremie Laval <jeremie.laval@gmail.com> | 2016-09-14 02:03:49 +0300 |
commit | 649d0c263677049ed1803fea8a9fe6df5229115d (patch) | |
tree | 5adce1af11677cb9cb6c11ae07d445a4b62b7c0c /Xwt.Gtk.Windows | |
parent | 2c2b5ae741c6dab6f642a34b2597bd64cf2bdb6b (diff) |
[Xwt.Gtk] Unsubscribe handlers from WPF when destroying interop widget
Diffstat (limited to 'Xwt.Gtk.Windows')
-rw-r--r-- | Xwt.Gtk.Windows/GtkWin32Interop.cs | 2 |
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 (); } |