// text changed by the user. Restore color and the ability to save the value. func onTextDefaultChanged(entry *gtk.Entry, key *cftype.Key) { key.IsDefault = false context, _ := entry.GetStyleContext() context.RemoveClass("DefaultValue") }