Guest User

Untitled

a guest
Sep 21st, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. --- a/main/src/core/Mono.Texteditor/Mono.TextEditor/GtkWorkarounds.cs
  2. +++ b/main/src/core/Mono.Texteditor/Mono.TextEditor/GtkWorkarounds.cs
  3. @@ -686,8 +686,10 @@ namespace Mono.TextEditor
  4. il.Emit (OpCodes.Ldloc, loc_obj);
  5. il.Emit (OpCodes.Brfalse, IL_002b);
  6.  
  7. + var tref = typeof (GLib.Object).Assembly.GetType ("GLib.ToggleRef");
  8. il.Emit (OpCodes.Ldloc, loc_obj);
  9. - il.Emit (OpCodes.Callvirt, typeof (GLib.Object).Assembly.GetType ("GLib.ToggleRef").GetProperty ("Target")
  10. + il.Emit (OpCodes.Castclass, tref);
  11. + il.Emit (OpCodes.Callvirt, tref.GetProperty ("Target").GetGetMethod ());
  12. il.Emit (OpCodes.Isinst, typeof (Gtk.Container));
  13. il.Emit (OpCodes.Stloc, loc_container);
Add Comment
Please, Sign In to add comment