Beispiel #1
0
func (self Atom) Name() string {
	if self.object == nil {
		return ""
	}

	s := C.gdk_atom_name(*self.object)
	return gobject.GoString(unsafe.Pointer(s))
}
Beispiel #2
0
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))
}