# HG changeset patch # User Mark Doliner # Date 1233170803 0 # Node ID e0572c12265abbbdc02cb8f782a47d6939194a12 # Parent 8c8948b9f6025e09839a38e4b48a120c7f479228 Add a comment just noting that I think it's kind of annoying that we have to do so much crap just to make a newline add a newline diff -r 8c8948b9f602 -r e0572c12265a pidgin/gtkimhtml.c --- a/pidgin/gtkimhtml.c Wed Jan 28 10:23:37 2009 +0000 +++ b/pidgin/gtkimhtml.c Wed Jan 28 19:26:43 2009 +0000 @@ -5866,6 +5866,13 @@ return TRUE; } +/* + * It's kind of a pain that we need this function and the above just + * to reinstate the default GtkTextView behavior. It might be better + * if GtkIMHtml didn't intercept the enter key and just required the + * application to deal with it--it's really not much more work than it + * is to connect to the current "message_send" signal. + */ void gtk_imhtml_set_return_inserts_newline(GtkIMHtml *imhtml) { g_signal_connect(G_OBJECT(imhtml), "message_send",