2008-06-06 Mike Kestner <mkestner@novell.com>
* atk/Object.custom: use 'as StateSet' instead of cast to avoid cast exceptions in the null case. svn path=/trunk/gtk-sharp/; revision=105170
This commit is contained in:
parent
535ffa6c40
commit
40b8a8c5d9
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2008-06-06 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
|
* atk/Object.custom: use 'as StateSet' instead of cast to avoid
|
||||||
|
cast exceptions in the null case.
|
||||||
|
|
||||||
2008-06-06 Andres G. Aragoneses <aaragoneses@novell.com>
|
2008-06-06 Andres G. Aragoneses <aaragoneses@novell.com>
|
||||||
|
|
||||||
* atk/Object.custom:
|
* atk/Object.custom:
|
||||||
|
|
|
@ -140,8 +140,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
[GLib.DefaultSignalHandler (Type=typeof(Atk.Object), ConnectionMethod="OverrideRefStateSet")]
|
[GLib.DefaultSignalHandler (Type=typeof(Atk.Object), ConnectionMethod="OverrideRefStateSet")]
|
||||||
protected virtual Atk.StateSet OnRefStateSet () {
|
protected virtual Atk.StateSet OnRefStateSet ()
|
||||||
|
{
|
||||||
IntPtr raw = atksharp_object_base_ref_state_set (Handle);
|
IntPtr raw = atksharp_object_base_ref_state_set (Handle);
|
||||||
return (Atk.StateSet) GLib.Object.GetObject (raw, true);
|
return GLib.Object.GetObject (raw, true) as StateSet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue