()
| 47 | } |
| 48 | |
| 49 | func (ttep *ToolTipErrorPresenter) Dispose() { |
| 50 | if ttep.toolTip != nil { |
| 51 | ttep.untrack() |
| 52 | ttep.toolTip.Dispose() |
| 53 | ttep.toolTip = nil |
| 54 | if ttep.form != nil { |
| 55 | ttep.form.AsFormBase().activatingPublisher.event.Detach(ttep.formActivatingHandle) |
| 56 | ttep.form.AsFormBase().deactivatingPublisher.event.Detach(ttep.formDeactivatingHandle) |
| 57 | ttep.form = nil |
| 58 | } |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | func (ttep *ToolTipErrorPresenter) PresentError(err error, widget Widget) { |
| 63 | if ttep.toolTip == nil { |
nothing calls this directly
no test coverage detected