I believe it is already bound to a lose focus event because I can make it save by doing things other than hitting enter, like clicking random things. Just doesn't seem to think it's losing focus when I hit esc or the ok button. Actually, I think gtk has switch focus calls, could try see if calling one of those still invokes the lose focus. If it does, we could switch focus to some unused, hidden if possible, widget to force the update before closing the dialog, a little hacky