// SetTitle is a wrapper around gtk_status_icon_set_title()
func (v *StatusIcon) SetTitle(title string) {
	cstr := (*C.gchar)(C.CString(title))
	defer C.free(unsafe.Pointer(cstr))
	C.gtk_status_icon_set_title(v.native(), cstr)
}
示例#2
0
文件: linux_gtk.go 项目: axet/desktop
func gtk_status_icon_set_title(icon GtkWidget, title string) {
	n := C.CString(title)
	defer C.free(unsafe.Pointer(n))
	C.gtk_status_icon_set_title(Arg(icon), n)
}