summaryrefslogtreecommitdiff
path: root/src/gui_gtk.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-05-04 21:54:08 +0000
committerBram Moolenaar <Bram@vim.org>2006-05-04 21:54:08 +0000
commit14716817266007c373d5cc6ee2294416e3132be6 (patch)
tree17456d1f860cb89befc89c43a62e1459b0cec0c0 /src/gui_gtk.c
parentfdc9f4904ea162e899df7859e7755c0253b47870 (diff)
downloadvim-git-14716817266007c373d5cc6ee2294416e3132be6.tar.gz
updated for version 7.0g03
Diffstat (limited to 'src/gui_gtk.c')
-rw-r--r--src/gui_gtk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui_gtk.c b/src/gui_gtk.c
index cc75c6768..0da144fc9 100644
--- a/src/gui_gtk.c
+++ b/src/gui_gtk.c
@@ -2221,6 +2221,7 @@ dialog_key_press_event_cb(GtkWidget *widget, GdkEventKey *event, gpointer data)
{
DialogInfo *di = (DialogInfo *)data;
+#ifndef HAVE_GTK2
/* Ignore hitting "Enter" if there is no default button. */
if (event->keyval == GDK_Return)
{
@@ -2228,6 +2229,7 @@ dialog_key_press_event_cb(GtkWidget *widget, GdkEventKey *event, gpointer data)
gtk_dialog_response(di->dialog, GTK_RESPONSE_ACCEPT);
return TRUE;
}
+#endif
/* Close the dialog when hitting "Esc". */
if (event->keyval == GDK_Escape)
@@ -2290,7 +2292,7 @@ gui_mch_dialog(int type, /* type of dialog */
dialoginfo.noalt = TRUE;
/* Allow activation of mnemonic accelerators without pressing <Alt> when
- * there is no textfield. Handle pressing Enter and Esc. */
+ * there is no textfield. Handle pressing Esc. */
g_signal_connect(G_OBJECT(dialog), "key_press_event",
G_CALLBACK(&dialog_key_press_event_cb), &dialoginfo);