提交 14e0787c 编写于 作者: yanghye's avatar yanghye

Ready to fix some problems on linux

上级 8dcdd2c7
......@@ -41,7 +41,7 @@ func main() {
windowComponent.SetTitle(title)
})
chromium.SetOnBeforePopup(func(sender lcl.IObject, browser *cef.ICefBrowser, frame *cef.ICefFrame, beforePopupInfo *cef.BeforePopupInfo, client *cef.ICefClient, noJavascriptAccess *bool) bool {
fmt.Println("OnBeforePopup")
fmt.Println("OnBeforePopup TargetUrl:", beforePopupInfo.TargetUrl)
return false
})
......@@ -55,10 +55,8 @@ func main() {
fmt.Println("\t", display.Bounds(), display.WorkArea())
windowComponent.CenterWindow(cef.NewCefSize(1024, 768))
browserViewComponent.RequestFocus()
windowComponent.SetWindowAppIcon(1, "resources/golang.jpeg")
windowComponent.Show()
windowComponent.SetWindowAppIcon(1, "resources/gitcode.png")
appIcon := windowComponent.WindowAppIcon()
fmt.Println("WindowIcon", appIcon.GetHeight())
})
windowComponent.SetOnCanClose(func(sender lcl.IObject, window *cef.ICefWindow, aResult *bool) {
fmt.Println("OnCanClose")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册