Example #1
0
// Layout finalizer
func layoutFinalizer(l *Layout) {
	runtime.SetFinalizer(l, func(l *Layout) { gobject.Unref(l) })
}
Example #2
0
// FontFamily finalizer
func fontFamilyFinalizer(f *FontFamily) {
	runtime.SetFinalizer(f, func(f *FontFamily) { gobject.Unref(f) })
}
Example #3
0
// Fontset finalizer
func fontsetFinalizer(f *Fontset) {
	runtime.SetFinalizer(f, func(f *Fontset) { gobject.Unref(f) })
}
Example #4
0
// PangoContext finalizer
func contextFinalizer(c *Context) {
	runtime.SetFinalizer(c, func(c *Context) { gobject.Unref(c) })
}
Example #5
0
// Clear Window struct when it goes out of reach
func windowFinalizer(w *Window) {
	runtime.SetFinalizer(w, func(w *Window) { gobject.Unref(w) })
}
Example #6
0
// Clear Screen struct when it goes out of reach
func screenFinalizer(s *Screen) {
	runtime.SetFinalizer(s, func(s *Screen) { gobject.Unref(s) })
}
Example #7
0
// Clear Device struct when it goes out of reach
func deviceFinalizer(d *Device) {
	runtime.SetFinalizer(d, func(d *Device) { gobject.Unref(d) })
}
Example #8
0
// Clear Display struct when it goes out of reach
func displayFinalizer(d *Display) {
	runtime.SetFinalizer(d, func(d *Display) { gobject.Unref(d) })
}