func setTrayIcon(icon *gtk.StatusIcon, status string, percent float64) { iconName := getGtkIcon(percent, status) if icon.GetIconName() != iconName { icon.SetFromIconName(iconName) } setToolTip(icon, status, percent, getAverageTime()) }
func setToolTip(icon *gtk.StatusIcon, status string, percent float64, time int) { icon.SetTooltipMarkup(getTooltipString(percent, status, time)) }