/* Gets a named field from the objects table of associations (see g_object_set_data()). */ func (self *TraitObject) GetData(key string) (return__ unsafe.Pointer) { __cgo__key := (*C.gchar)(unsafe.Pointer(C.CString(key))) var __cgo__return__ C.gpointer __cgo__return__ = C.g_object_get_data(self.CPointer, __cgo__key) C.free(unsafe.Pointer(__cgo__key)) return__ = unsafe.Pointer(__cgo__return__) return }
func (v *GObject) GetData(s string) unsafe.Pointer { ptr := C.CString(s) defer C.free_string(ptr) p := C.g_object_get_data((*C.GObject)(v.Object), C.to_gcharptr(ptr)) return unsafe.Pointer(p) }