3aeac0f
To: vim_dev@googlegroups.com
3aeac0f
Subject: Patch 7.3.069
3aeac0f
Fcc: outbox
3aeac0f
From: Bram Moolenaar <Bram@moolenaar.net>
3aeac0f
Mime-Version: 1.0
3aeac0f
Content-Type: text/plain; charset=UTF-8
3aeac0f
Content-Transfer-Encoding: 8bit
3aeac0f
------------
3aeac0f
3aeac0f
Patch 7.3.069
3aeac0f
Problem:    GTK: pressing Enter in inputdialog() doesn't work like clicking OK
3aeac0f
	    as documented.
3aeac0f
Solution:   call gtk_entry_set_activates_default(). (Britton Kerin)
3aeac0f
Files:	    src/gui_gtk.c
3aeac0f
3aeac0f
3aeac0f
*** ../vim-7.3.068/src/gui_gtk.c	2010-08-15 21:57:32.000000000 +0200
3aeac0f
--- src/gui_gtk.c	2010-11-24 18:44:21.000000000 +0100
3aeac0f
***************
3aeac0f
*** 1287,1292 ****
3aeac0f
--- 1287,1295 ----
3aeac0f
  	entry = gtk_entry_new();
3aeac0f
  	gtk_widget_show(entry);
3aeac0f
  
3aeac0f
+ 	/* Make Enter work like pressing OK. */
3aeac0f
+         gtk_entry_set_activates_default(GTK_ENTRY(entry), TRUE);
3aeac0f
+ 
3aeac0f
  	text = CONVERT_TO_UTF8(textfield);
3aeac0f
  	gtk_entry_set_text(GTK_ENTRY(entry), (const char *)text);
3aeac0f
  	CONVERT_TO_UTF8_FREE(text);
3aeac0f
*** ../vim-7.3.068/src/version.c	2010-11-24 17:59:27.000000000 +0100
3aeac0f
--- src/version.c	2010-11-24 18:46:39.000000000 +0100
3aeac0f
***************
3aeac0f
*** 716,717 ****
3aeac0f
--- 716,719 ----
3aeac0f
  {   /* Add new patch number below this line */
3aeac0f
+ /**/
3aeac0f
+     69,
3aeac0f
  /**/
3aeac0f
3aeac0f
-- 
3aeac0f
Why I like vim:
3aeac0f
> I like VIM because, when I ask a question in this newsgroup, I get a
3aeac0f
> one-line answer.  With xemacs, I get a 1Kb lisp script with bugs in it ;-)
3aeac0f
3aeac0f
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3aeac0f
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3aeac0f
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3aeac0f
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///