]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.069 v7.3.069
authorBram Moolenaar <Bram@vim.org>
Wed, 24 Nov 2010 17:48:12 +0000 (18:48 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 24 Nov 2010 17:48:12 +0000 (18:48 +0100)
Problem:    GTK: pressing Enter in inputdialog() doesn't work like clicking OK
            as documented.
Solution:   call gtk_entry_set_activates_default(). (Britton Kerin)

src/gui_gtk.c
src/version.c

index 1533c647c0accb5d3a61808bb03430cae2f347e1..326a30cff6526425f714e1689a478bcd96f6e8f1 100644 (file)
@@ -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);
index d92f09040be3a10a7622963585287f0ed8508986..3dfb975deb12ddef4c8918f288f6066385423198 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    69,
 /**/
     68,
 /**/