0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

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)
This commit is contained in:
Bram Moolenaar
2010-11-24 18:48:12 +01:00
parent f666f0e5c0
commit df6b11e955
2 changed files with 5 additions and 0 deletions

View 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);