Esempio n. 1
0
// SetRole is a wrapper around gtk_window_set_role().
func (v *Window) SetRole(s string) {
	cstr := (*C.gchar)(C.CString(s))
	defer C.free(unsafe.Pointer(cstr))
	C.gtk_window_set_role(v.native(), cstr)
}
Esempio n. 2
0
func (w *Window) SetRole(role string) {
	s0 := _GString(role)
	defer _GFree(unsafe.Pointer(s0))
	C.gtk_window_set_role(w.c, s0)
}