func (account *account) setCurrentNotification(ib gtki.InfoBar, notificationArea gtki.Box) { account.Lock() defer account.Unlock() account.removeCurrentNotification() account.currentNotification = ib notificationArea.Add(ib) ib.ShowAll() }