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