diff options
author | Damien Miller <djm@mindrot.org> | 1999-11-22 12:51:42 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 1999-11-22 12:51:42 +1100 |
commit | 22218727fdf4ad356b7ad9ec5f4406e31858db1d (patch) | |
tree | c1cb52c78c532268bade8beb9d3984e9d87d39e3 /gnome-ssh-askpass.c | |
parent | 431f66b68c98e9db87574860a0a29d8d8aa9b52c (diff) |
- Make <enter> close gnome-ssh-askpass (Debian bug #50299)
Diffstat (limited to 'gnome-ssh-askpass.c')
-rw-r--r-- | gnome-ssh-askpass.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gnome-ssh-askpass.c b/gnome-ssh-askpass.c index 74956099..93a64d1e 100644 --- a/gnome-ssh-askpass.c +++ b/gnome-ssh-askpass.c @@ -74,6 +74,9 @@ int passphrase_dialog(char **passphrase_p, char *message) gdk_pointer_grab(dialog->window, TRUE, 0, NULL, NULL, GDK_CURRENT_TIME); gdk_keyboard_grab(dialog->window, FALSE, GDK_CURRENT_TIME); + /* Make <enter> close dialog */ + gnome_dialog_editable_enters(GNOME_DIALOG(dialog), GTK_EDITABLE(entry)); + /* Run dialog */ result = gnome_dialog_run(GNOME_DIALOG(dialog)); |