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