mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 00:45:35 +00:00
ui: rename ops to have Op suffixed, not prefixed
Match Go's FooError name pattern. While we're here, rename RedrawOp to InvalidateOp. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -77,7 +77,7 @@ const (
|
||||
)
|
||||
|
||||
func (c *Click) Add(ops *ui.Ops) {
|
||||
op := pointer.OpHandler{Key: c}
|
||||
op := pointer.HandlerOp{Key: c}
|
||||
op.Add(ops)
|
||||
}
|
||||
|
||||
@@ -118,10 +118,10 @@ func (c *Click) Update(q input.Events) []ClickEvent {
|
||||
}
|
||||
|
||||
func (s *Scroll) Add(ops *ui.Ops) {
|
||||
oph := pointer.OpHandler{Key: s, Grab: s.grab}
|
||||
oph := pointer.HandlerOp{Key: s, Grab: s.grab}
|
||||
oph.Add(ops)
|
||||
if s.flinger.Active() {
|
||||
ui.OpRedraw{}.Add(ops)
|
||||
ui.InvalidateOp{}.Add(ops)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user