2008-08-28 Andrés G. Aragoneses <aaragoneses@novell.com>

* atk/Util.custom: unregister get_root function when the setter
        receives null. Partial fix for BNC#411444.


svn path=/trunk/gtk-sharp/; revision=111872
This commit is contained in:
Andrés G. Aragoneses 2008-08-28 20:43:58 +00:00
parent a3e074c46a
commit 1a681abfac
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2008-08-28 Andrés G. Aragoneses <aaragoneses@novell.com>
* atk/Util.custom: unregister get_root function when the setter
receives null. Partial fix for BNC#411444.
2008-08-27 Mike Kestner <mkestner@novell.com>
* generator/ManagedCallString.cs: use existing Parameters.IsHidden

View File

@ -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);
}
}
}