mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-09 00:13:20 +02:00
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
@ -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 New Issue
Block a user