// 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)) }
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) }
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())) }