From 1a681abfac2ce218e901eb31d1ae3147ed0a9ed9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20G=2E=20Aragoneses?= Date: Thu, 28 Aug 2008 20:43:58 +0000 Subject: [PATCH] =?UTF-8?q?2008-08-28=20=20Andr=C3=A9s=20G.=20Aragoneses?= =?UTF-8?q?=20=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * atk/Util.custom: unregister get_root function when the setter receives null. Partial fix for BNC#411444. svn path=/trunk/gtk-sharp/; revision=111872 --- ChangeLog | 5 +++++ atk/Util.custom | 10 +++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5fc8f7ba1..2e31dfe50 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-08-28 Andrés G. Aragoneses + + * atk/Util.custom: unregister get_root function when the setter + receives null. Partial fix for BNC#411444. + 2008-08-27 Mike Kestner * generator/ManagedCallString.cs: use existing Parameters.IsHidden diff --git a/atk/Util.custom b/atk/Util.custom index d7445d355..79e87c242 100644 --- a/atk/Util.custom +++ b/atk/Util.custom @@ -185,9 +185,13 @@ public static GetRootDelegate GetRootHandler { set { get_root_handler = value; - if (get_root_callback == null) - get_root_callback = new GetRootNativeDelegate (GetRootCallback); - atksharp_util_override_get_root (get_root_callback); + if (value == null) + atksharp_util_override_get_root (null); + else { + if (get_root_callback == null) + get_root_callback = new GetRootNativeDelegate (GetRootCallback); + atksharp_util_override_get_root (get_root_callback); + } } }