// PackKeyWidget packs a key widget to the page with its getValue call // // (was _pack_subwidget). func (build *builder) PackKeyWidget(key *cftype.Key, getValue func() interface{}, setValue func(interface{}), childs ...gtk.IWidget) { for _, w := range childs { build.pWidgetBox.PackStart(w, key.IsAlignedVertical, key.IsAlignedVertical, 0) } // key.SetValue = setValue key.SetWidSetValue(setValue) key.SetWidGetValue(getValue) }