mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-22 20:35:37 +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 {
|
||||
get {
|
||||
InvocationHint hint = (InvocationHint) Marshal.PtrToStructure (g_signal_get_invocation_hint (obj.Handle), typeof (InvocationHint));
|
||||
if (hint.run_type == Flags.RunFirst)
|
||||
return before_handler;
|
||||
else
|
||||
return after_handler;
|
||||
var hint = (InvocationHint) Marshal.PtrToStructure (g_signal_get_invocation_hint (obj.Handle), typeof (InvocationHint));
|
||||
return hint.run_type.HasFlag(Flags.RunFirst)
|
||||
? before_handler
|
||||
: after_handler;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue