2009-11-28 Mike Kestner <mkestner@novell.com>
* glib/GException.cs: add Code and Domain props to expose the GError fields to interested users. [Fixes #555675] svn path=/trunk/gtk-sharp/; revision=147060
This commit is contained in:
parent
88a7a7305c
commit
e216baa99f
2 changed files with 19 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-11-28 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* glib/GException.cs: add Code and Domain props to expose the GError
|
||||
fields to interested users. [Fixes #555675]
|
||||
|
||||
2009-11-23 Christian Hoff <christian_hoff@gmx.net>
|
||||
|
||||
* generator/Signal.cs: Return a GInterfaceAdapter in the signalargs's
|
||||
|
|
|
@ -39,6 +39,20 @@ namespace GLib {
|
|||
public IntPtr Msg;
|
||||
}
|
||||
|
||||
public int Code {
|
||||
get {
|
||||
GError err = (GError) Marshal.PtrToStructure (errptr, typeof (GError));
|
||||
return err.Code;
|
||||
}
|
||||
}
|
||||
|
||||
public int Domain {
|
||||
get {
|
||||
GError err = (GError) Marshal.PtrToStructure (errptr, typeof (GError));
|
||||
return err.Domain;
|
||||
}
|
||||
}
|
||||
|
||||
public override string Message {
|
||||
get {
|
||||
GError err = (GError) Marshal.PtrToStructure (errptr, typeof (GError));
|
||||
|
|
Loading…
Reference in a new issue