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 | df6b11e95593b5c2ff7690645ffbbb0702ca1c9f (patch) | |
tree | e4bc55a2ded61ffa9ac37dd01e2713691e0ac37a /src/gui_gtk.c | |
parent | f666f0e5c07723c77cb9bc34034542a3c6106e4e (diff) | |
download | vim-git-df6b11e95593b5c2ff7690645ffbbb0702ca1c9f.tar.gz |
updated for version 7.3.069v7.3.069
Problem: GTK: pressing Enter in inputdialog() doesn't work like clicking OK
as documented.
Solution: call gtk_entry_set_activates_default(). (Britton Kerin)
Diffstat (limited to 'src/gui_gtk.c')
-rw-r--r-- | src/gui_gtk.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui_gtk.c b/src/gui_gtk.c index 1533c647c..326a30cff 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); |