コード例 #1
0
ファイル: appindicator.go プロジェクト: perlw/appindicator
// Sets the path to use when searching for icons.
func (indicator *AppIndicator) SetIconThemePath(iconPath string) {
	iconPathString := (*C.gchar)(unsafe.Pointer(C.CString(iconPath)))
	defer C.free(unsafe.Pointer(iconPathString))

	C.app_indicator_set_icon_theme_path((*C.AppIndicator)(indicator.IndicatorPtr), iconPathString)
}
コード例 #2
0
func app_indicator_set_icon_theme_path(app AppIndicator, path string) {
	n := C.CString(path)
	defer C.free(unsafe.Pointer(n))
	C.app_indicator_set_icon_theme_path(Arg(app), n)
}