gdk/gdk.go
func (v *Display) GetEvent() (*Event, error) {
	c := C.gdk_display_get_event(v.native())
	if c == nil {
		return nil, nilPtrErr
	}

	//The finalizer is not on the glib.Object but on the event.
	e := &Event{c}
	runtime.SetFinalizer(e, (*Event).free)
	return e, nil
}
func (v *Display) GetEvent() (*Event, error) {
	c := C.gdk_display_get_event(v.native())
	if c == nil {
		return nil, nilPtrErr
	}

	//The finalizer is not on the glib.Object but on the event.
	e := &Event{c}
	runtime.SetFinalizer(e, (*Event).free)
	return e, nil
}
func ( v * Display ) GetEvent ( ) ( * Event , error ) { c := C . gdk_display_get_event ( v . native ( ) ) if c == nil { return nil , nilPtrErr } //The finalizer is not on the glib.Object but on the event. e := & Event { c } runtime . SetFinalizer ( e , ( * Event ) . free ) return e , nil }
// GetEvent() is a wrapper around gdk_display_get_event().
GetEvent () is a wrapper around gdk_display_get_event () .