diff pidgin/gtkrequest.c @ 25936:2cf7d6a20e68

Add a GtkIMHtml function that causes the widget to actually insert a newline when the user presses the return key. This is used in the saved status editor and the gtkrequest html input box. Implementing this was kind of a pain. I think it would be better if gtkimhtml.c didn't do anything with return and we changed gtkconv to watch for that key press and send the message.
author Mark Doliner <mark@kingant.net>
date Wed, 28 Jan 2009 08:57:55 +0000
parents 3d8c53f3108e
children 8a46d5528c3c 5391094529c6 d0588e403877 f08acd4299d5
line wrap: on
line diff
--- a/pidgin/gtkrequest.c	Wed Jan 28 08:31:47 2009 +0000
+++ b/pidgin/gtkrequest.c	Wed Jan 28 08:57:55 2009 +0000
@@ -384,6 +384,8 @@
 			gtk_imhtml_append_text(GTK_IMHTML(entry), default_value, GTK_IMHTML_NO_SCROLL);
 		gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0);
 		gtk_widget_show(frame);
+
+		gtk_imhtml_set_return_inserts_newline(GTK_IMHTML(entry));
 	}
 	else {
 		if (multiline) {