--- a/pidgin/gtkimhtml.h Wed Jan 28 08:31:47 2009 +0000 +++ b/pidgin/gtkimhtml.h Wed Jan 28 08:57:55 2009 +0000 @@ -948,6 +948,17 @@ */ gboolean gtk_imhtml_link_activate(GtkIMHtmlLink *link); +/** + * By default this widget intercepts presses of the "return" key and + * emits the "message_send" signal instead. If you don't want this + * behavior, and you want the standard GtkTextView behavior of + * inserting a newline into the buffer, then call this function. + * + * @param imhtml The GtkIMHtml where you want the "return" key to add + * newline and not emit the "message_send" signal. + */ +void gtk_imhtml_set_return_inserts_newline(GtkIMHtml *imhtml); + /*@}*/ #ifdef __cplusplus