示例#1
0
文件: gdk3.go 项目: jkeys089/go-gtk3
func (self Atom) Name() string {
	if self.object == nil {
		return ""
	}

	s := C.gdk_atom_name(*self.object)
	return gobject.GoString(unsafe.Pointer(s))
}
示例#2
0
文件: gdk.go 项目: raichu/gotk3
func (v Atom) Name() string {
	c := C.gdk_atom_name(v.native())
	defer C.g_free(C.gpointer(c))
	return C.GoString((*C.char)(c))
}