Exemplo n.º 1
0
// Sets the title of the indicator, or how it should be referred in a human readable form.
func (indicator *AppIndicator) SetTitle(title string) {
	titleString := (*C.gchar)(unsafe.Pointer(C.CString(title)))
	defer C.free(unsafe.Pointer(titleString))

	C.app_indicator_set_title((*C.AppIndicator)(indicator.IndicatorPtr), titleString)
}
Exemplo n.º 2
0
func app_indicator_set_title(app AppIndicator, title string) {
	n := C.CString(title)
	defer C.free(unsafe.Pointer(n))
	C.app_indicator_set_title(Arg(app), n)
}