mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 06:25:49 +00:00
Signal.Handler: correct flag check (#233)
This commit is contained in:
parent
a23d44fb82
commit
9be7e092a8
|
@ -211,11 +211,10 @@ namespace GLib {
|
||||||
|
|
||||||
public Delegate Handler {
|
public Delegate Handler {
|
||||||
get {
|
get {
|
||||||
InvocationHint hint = (InvocationHint) Marshal.PtrToStructure (g_signal_get_invocation_hint (obj.Handle), typeof (InvocationHint));
|
var hint = (InvocationHint) Marshal.PtrToStructure (g_signal_get_invocation_hint (obj.Handle), typeof (InvocationHint));
|
||||||
if (hint.run_type == Flags.RunFirst)
|
return hint.run_type.HasFlag(Flags.RunFirst)
|
||||||
return before_handler;
|
? before_handler
|
||||||
else
|
: after_handler;
|
||||||
return after_handler;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue