diff options
Diffstat (limited to 'pkg/gui/context/patch_explorer_context.go')
-rw-r--r-- | pkg/gui/context/patch_explorer_context.go | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/pkg/gui/context/patch_explorer_context.go b/pkg/gui/context/patch_explorer_context.go index 5a3375f33..1c986ee1d 100644 --- a/pkg/gui/context/patch_explorer_context.go +++ b/pkg/gui/context/patch_explorer_context.go @@ -13,7 +13,7 @@ type PatchExplorerContext struct { state *patch_exploring.State viewTrait *ViewTrait getIncludedLineIndices func() []int - c *types.HelperCommon + c *ContextCommon mutex *deadlock.Mutex } @@ -24,11 +24,9 @@ func NewPatchExplorerContext( windowName string, key types.ContextKey, - onFocus func(types.OnFocusOpts) error, - onFocusLost func(opts types.OnFocusLostOpts) error, getIncludedLineIndices func() []int, - c *types.HelperCommon, + c *ContextCommon, ) *PatchExplorerContext { return &PatchExplorerContext{ state: nil, @@ -43,13 +41,12 @@ func NewPatchExplorerContext( Kind: types.MAIN_CONTEXT, Focusable: true, HighlightOnFocus: true, - }), ContextCallbackOpts{ - OnFocus: onFocus, - OnFocusLost: onFocusLost, - }), + })), } } +func (self *PatchExplorerContext) IsPatchExplorerContext() {} + func (self *PatchExplorerContext) GetState() *patch_exploring.State { return self.state } |