Compare commits
2 Commits
214c349869
...
9c9776bacd
Author | SHA1 | Date | |
---|---|---|---|
9c9776bacd | |||
086b879ab8 |
@ -4,8 +4,10 @@
|
|||||||
AWK = env LC_ALL=C awk
|
AWK = env LC_ALL=C awk
|
||||||
|
|
||||||
tools = ../liberty/tools
|
tools = ../liberty/tools
|
||||||
outputs = FyneApp.toml xA proto.go xA.png xA-highlighted.png beep.raw
|
generated = FyneApp.toml xA.png xA-highlighted.png beep.raw proto.go
|
||||||
|
outputs = xA $(generated)
|
||||||
all: $(outputs)
|
all: $(outputs)
|
||||||
|
generate: $(generated)
|
||||||
|
|
||||||
FyneApp.toml: ../xK-version
|
FyneApp.toml: ../xK-version
|
||||||
printf "\
|
printf "\
|
||||||
@ -27,7 +29,7 @@ beep.raw:
|
|||||||
proto.go: $(tools)/lxdrgen.awk $(tools)/lxdrgen-go.awk ../xC.lxdr
|
proto.go: $(tools)/lxdrgen.awk $(tools)/lxdrgen-go.awk ../xC.lxdr
|
||||||
$(AWK) -f $(tools)/lxdrgen.awk -f $(tools)/lxdrgen-go.awk \
|
$(AWK) -f $(tools)/lxdrgen.awk -f $(tools)/lxdrgen-go.awk \
|
||||||
-v PrefixCamel=Relay ../xC.lxdr > $@
|
-v PrefixCamel=Relay ../xC.lxdr > $@
|
||||||
xA: xA.go proto.go ../xK-version xA.png xA-highlighted.png beep.raw
|
xA: xA.go ../xK-version $(generated)
|
||||||
go build -ldflags "-X 'main.projectVersion=$$(cat ../xK-version)'" -o $@ \
|
go build -ldflags "-X 'main.projectVersion=$$(cat ../xK-version)'" -o $@ \
|
||||||
-gcflags=all="-N -l"
|
-gcflags=all="-N -l"
|
||||||
clean:
|
clean:
|
||||||
|
9
xA/xA.go
9
xA/xA.go
@ -1322,7 +1322,8 @@ func (e *inputEntry) SetText(text string) {
|
|||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
type logEntry struct {
|
type logEntry struct {
|
||||||
// XXX: Sadly, we can't seem to make it read-only in any way.
|
// XXX: Sadly, we can't seem to make it actually read-only.
|
||||||
|
// https://github.com/fyne-io/fyne/issues/5263
|
||||||
widget.Entry
|
widget.Entry
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1334,6 +1335,12 @@ func newLogEntry() *logEntry {
|
|||||||
return e
|
return e
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (e *logEntry) SetText(text string) {
|
||||||
|
e.OnChanged = nil
|
||||||
|
e.Entry.SetText(text)
|
||||||
|
e.OnChanged = func(string) { e.Entry.SetText(text) }
|
||||||
|
}
|
||||||
|
|
||||||
func (e *logEntry) AcceptsTab() bool {
|
func (e *logEntry) AcceptsTab() bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user