diff options
author | Bram Moolenaar <bram@vim.org> | 2010-11-24 18:48:12 +0100 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2010-11-24 18:48:12 +0100 |
commit | 6c243d5fcaa589af22ad5e8a7d1a6a2f9639759a (patch) | |
tree | 25ed5ef4876dcc780b1e1e6bb045411dc27acb6c | |
parent | 95a96335b2d748ebb495e0a297c9aac76ec7d224 (diff) | |
download | vim-6c243d5fcaa589af22ad5e8a7d1a6a2f9639759a.tar.gz |
Problem: GTK: pressing Enter in inputdialog() doesn't work like clicking OK
as documented.
Solution: call gtk_entry_set_activates_default(). (Britton Kerin)
-rw-r--r-- | src/gui_gtk.c | 3 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/gui_gtk.c b/src/gui_gtk.c index 1533c647..326a30cf 100644 --- a/src/gui_gtk.c +++ b/src/gui_gtk.c @@ -1287,6 +1287,9 @@ gui_mch_dialog(int type, /* type of dialog */ entry = gtk_entry_new(); gtk_widget_show(entry); + /* Make Enter work like pressing OK. */ + gtk_entry_set_activates_default(GTK_ENTRY(entry), TRUE); + text = CONVERT_TO_UTF8(textfield); gtk_entry_set_text(GTK_ENTRY(entry), (const char *)text); CONVERT_TO_UTF8_FREE(text); diff --git a/src/version.c b/src/version.c index d92f0904..3dfb975d 100644 --- a/src/version.c +++ b/src/version.c @@ -715,6 +715,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 69, +/**/ 68, /**/ 67, |