Exemple #1
0
// native returns a pointer to the underlying GMenu.
func (v *Menu) native() *C.GMenu {
	if v == nil || v.GObject == nil {
		return nil
	}
	p := unsafe.Pointer(v.GObject)
	return C.toGMenu(p)
}
Exemple #2
0
// native() returns a pointer to the underlying GMenu.
func (m *Menu) native() *C.GMenu {
	if m == nil || m.GObject == nil {
		return nil
	}
	p := unsafe.Pointer(m.GObject)
	return C.toGMenu(p)
}
Exemple #3
0
func (v *Menu) toMenu() *C.GMenu {
	if v == nil {
		return nil
	}
	return C.toGMenu(unsafe.Pointer(v.GObject))
}