Britton Kerin wrote:
> The docs say hitting enter works like pressing the OK button but it doesn't
> work at the moment because the GtkEntry that gets packed in the dialog eats
> the enter by default. This one line patch makes it work right.
>
> Note that the code it still somewhat confused as enter doesn't end up
> producing
> a GTK_RESPONSE_ACCEPT as the gui_mch_dialog code seems to expect. But it
> never
> did (even when you just press the button) I believe because this response is
> never set for this button for gui_mch_dialog. The Gtk docs say this code is
> not generated automatically, but only if it is set for a button. Other
> dialogs
> (file chooser etc.) do that the the input dialog doesn't so far as I can see.
> Anyway all the existing code does with GTK_RESPONSE_ACCEPT is set the response
> straight back to def_but which is what does get returned by gtk_dialog_run.
Thanks. I'll check it out later.
--
It is illegal for anyone to give lighted cigars to dogs, cats, and other
domesticated animal kept as pets.
[real standing law in Illinois, United States of America]
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exiting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php