mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 09:25:38 +00:00
all: update layouts to use layout.Context
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -79,6 +79,7 @@ func (a *App) run() error {
|
||||
a.ui.profiling = *stats
|
||||
ops := new(ui.Ops)
|
||||
var cfg app.Config
|
||||
ctx := new(layout.Context)
|
||||
for {
|
||||
select {
|
||||
case users := <-a.updateUsers:
|
||||
@@ -128,8 +129,8 @@ func (a *App) run() error {
|
||||
case app.UpdateEvent:
|
||||
ops.Reset()
|
||||
cfg = e.Config
|
||||
cs := layout.RigidConstraints(e.Size)
|
||||
a.ui.Layout(&cfg, a.w.Queue(), ops, cs)
|
||||
ctx.Constraints = layout.RigidConstraints(e.Size)
|
||||
a.ui.Layout(&cfg, a.w.Queue(), ops, ctx)
|
||||
a.w.Update(ops)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user