Esempio n. 1
0
// SetTitle sets the systray title, only available on Mac.
func SetTitle(title string) {
	t, err := syscall.UTF16PtrFromString(title)
	if err != nil {
		panic(err)
	}

	C.setTitle((*C.wchar_t)(unsafe.Pointer(t)))
}
Esempio n. 2
0
// SetTitle sets the systray title, only available on Mac.
func SetTitle(title string) {
	C.setTitle(C.CString(title))
}