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:
@@ -1287,6 +1287,9 @@ gui_mch_dialog(int type, /* type of dialog */
|
|||||||
entry = gtk_entry_new();
|
entry = gtk_entry_new();
|
||||||
gtk_widget_show(entry);
|
gtk_widget_show(entry);
|
||||||
|
|
||||||
|
/* Make Enter work like pressing OK. */
|
||||||
|
gtk_entry_set_activates_default(GTK_ENTRY(entry), TRUE);
|
||||||
|
|
||||||
text = CONVERT_TO_UTF8(textfield);
|
text = CONVERT_TO_UTF8(textfield);
|
||||||
gtk_entry_set_text(GTK_ENTRY(entry), (const char *)text);
|
gtk_entry_set_text(GTK_ENTRY(entry), (const char *)text);
|
||||||
CONVERT_TO_UTF8_FREE(text);
|
CONVERT_TO_UTF8_FREE(text);
|
||||||
|
@@ -714,6 +714,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
69,
|
||||||
/**/
|
/**/
|
||||||
68,
|
68,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user