// StackSwitcherNew is a wrapper around gtk_stack_switcher_new(). func StackSwitcherNew() (*StackSwitcher, error) { c := C.gtk_stack_switcher_new() if c == nil { return nil, nilPtrErr } return wrapStackSwitcher(wrapObject(unsafe.Pointer(c))), nil }
// StackSwitcherNew is a wrapper around gtk_stack_switcher_new(). func StackSwitcherNew() (*StackSwitcher, error) { c := C.gtk_stack_switcher_new() if c == nil { return nil, nilPtrErr } obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))} s := wrapStackSwitcher(obj) obj.RefSink() runtime.SetFinalizer(obj, (*glib.Object).Unref) return s, nil }