static void Activated_cb(IntPtr inst) { try { Button __obj = GLib.Object.GetObject(inst, false) as Button; __obj.OnActivated(); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }