Esempio n. 1
0
// SetWMClass is a wrapper around gtk_window_set_wmclass().
func (v *Window) SetWMClass(name, class string) {
	cName := C.CString(name)
	defer C.free(unsafe.Pointer(cName))
	cClass := C.CString(class)
	defer C.free(unsafe.Pointer(cClass))
	C.gtk_window_set_wmclass(v.native(), (*C.gchar)(cName), (*C.gchar)(cClass))
}
Esempio n. 2
0
func (w *Window) SetWmclass(wmclass_name, wmclass_class string) {
	s0 := _GString(wmclass_name)
	s1 := _GString(wmclass_class)
	defer _GFree(unsafe.Pointer(s0))
	defer _GFree(unsafe.Pointer(s1))

	C.gtk_window_set_wmclass(w.c, s0, s1)
}
Esempio n. 3
0
func (self *Window) SetWMClass(name, class string) {
	n := gobject.GString(name)
	c := gobject.GString(class)
	defer n.Free()
	defer c.Free()
	C.gtk_window_set_wmclass(self.object, (*C.gchar)(n.GetPtr()),
		(*C.gchar)(c.GetPtr()))
}