From: Bram Moolenaar Date: Wed, 24 Nov 2010 17:48:12 +0000 (+0100) Subject: updated for version 7.3.069 X-Git-Tag: v7.3.069 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df6b11e95593b5c2ff7690645ffbbb0702ca1c9f;p=vim updated for version 7.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) --- 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); diff --git a/src/version.c b/src/version.c index d92f09040..3dfb975de 100644 --- a/src/version.c +++ b/src/version.c @@ -714,6 +714,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 69, /**/ 68, /**/