func (account *account) setCurrentNotification(ib *gtk.InfoBar, notificationArea *gtk.Box) { account.Lock() defer account.Unlock() account.removeCurrentNotification() account.currentNotification = ib notificationArea.Add(ib) ib.ShowAll() }
// Collect all input elements to be constructed. func (dialog *EditMenuDialog) fillBox(box *gtk.Box, e elementType) error { for _, i := range inputElementMap[e] { widget, err := dialog.createInputElement(i) if err != nil { return err } box.Add(widget) } return nil }