diff pidgin/gtksavedstatuses.c @ 25427: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 6e1967b0f90b
children 0011cd06990a 5391094529c6
line wrap: on
line diff
--- a/pidgin/gtksavedstatuses.c	Wed Jan 28 08:31:47 2009 +0000
+++ b/pidgin/gtksavedstatuses.c	Wed Jan 28 08:57:55 2009 +0000
@@ -1218,6 +1218,8 @@
 	gtk_container_set_focus_chain(GTK_CONTAINER(hbox), focus_chain);
 	g_list_free(focus_chain);
 
+	gtk_imhtml_set_return_inserts_newline(dialog->message);
+
 	if ((saved_status != NULL) && (purple_savedstatus_get_message(saved_status) != NULL))
 		gtk_imhtml_append_text(GTK_IMHTML(text),
 							   purple_savedstatus_get_message(saved_status), 0);