@@ -146,7 +146,7 @@ const Bar = (monitor = 0) => Widget.Window({
146
146
name: ` bar${ monitor} ` ,
147
147
anchor: [' top' , ' left' , ' right' ],
148
148
child: Widget .Label ()
149
- .poll (1000 , label => label .label = exec (' date' )),
149
+ .poll (1000 , label => label .label = Utils . exec (' date' )),
150
150
})
151
151
```
152
152
@@ -161,6 +161,8 @@ const date = Variable('', {
161
161
})
162
162
163
163
const Bar = () => Widget .Window ({
164
+ name: ' bar' ,
165
+ anchor: [' top' , ' left' , ' right' ],
164
166
child: Widget .Label ({ label: date .bind () })
165
167
})
166
168
```
@@ -192,6 +194,7 @@ myVariable.connect('changed', ({ value }) => {
192
194
``` js
193
195
const bar = Widget .Window ({
194
196
name: ' bar' ,
197
+ anchor: [' top' , ' left' , ' right' ],
195
198
child: Widget .Label ({
196
199
label: myVariable .bind ().transform (v => ` value: ${ v} ` )
197
200
}),
@@ -226,7 +229,7 @@ pactl.connect('changed', ({ value }) => {
226
229
const label = Widget .Label ({
227
230
label: pactl .bind ().transform (({ count, msg }) => {
228
231
return ` ${ msg} ${ count} `
229
- })) ,
232
+ }),
230
233
})
231
234
232
235
// widgets are GObjects too
0 commit comments