示例#1
0
文件: gi.go 项目: bytbox/gogobject
// g_base_info_get_attribute
func (bi *BaseInfo) Attribute(name string) string {
	gname := _GoStringToGString(name)
	ret := _GStringToGoString(C.g_base_info_get_attribute(bi.c, gname))
	C.free_gstring(gname)
	return ret
}
示例#2
0
文件: info.go 项目: dradtke/gogi
func (info *GiInfo) GetAttribute(attr string) string {
	_attr := GlibString(attr)
	defer C.g_free((C.gpointer)(_attr))
	return GoString(C.g_base_info_get_attribute(info.ptr, _attr))
}