Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3fe6d71234 | ||
|
|
0e5b1cf659 | ||
|
|
6494557979 |
12
main.go
12
main.go
@@ -21,7 +21,7 @@ import (
|
|||||||
"github.com/gotk3/gotk3/gtk"
|
"github.com/gotk3/gotk3/gtk"
|
||||||
)
|
)
|
||||||
|
|
||||||
const version = "0.3.2"
|
const version = "0.3.3"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
appDirs []string
|
appDirs []string
|
||||||
@@ -549,14 +549,16 @@ func main() {
|
|||||||
fileSearchResultWrapper.Hide()
|
fileSearchResultWrapper.Hide()
|
||||||
}
|
}
|
||||||
// focus 1st element
|
// focus 1st element
|
||||||
b := appFlowBox.GetChildAtIndex(0)
|
var button gtk.IWidget
|
||||||
if b != nil {
|
if pinnedFlowBox.GetChildren().Length() > 0 {
|
||||||
button, err := b.GetChild()
|
button, err = pinnedFlowBox.GetChildAtIndex(0).GetChild()
|
||||||
|
} else {
|
||||||
|
button, err = appFlowBox.GetChildAtIndex(0).GetChild()
|
||||||
|
}
|
||||||
if err == nil {
|
if err == nil {
|
||||||
button.ToWidget().GrabFocus()
|
button.ToWidget().GrabFocus()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return false
|
return false
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user