changeset 7801:9db4ec5e6bca

[gaim-migrate @ 8447] 1. Things are better when they compile 2. Ctrl-up and Ctrl-down will work with formatting. 3. closing tags are still effed up. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Mon, 08 Dec 2003 00:52:54 +0000
parents 1eb2c09b9a86
children f1d2907db5be
files src/gtkconv.c src/gtkimhtml.c
diffstat 2 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkconv.c	Mon Dec 08 00:43:56 2003 +0000
+++ b/src/gtkconv.c	Mon Dec 08 00:52:54 2003 +0000
@@ -1348,8 +1348,8 @@
 					conv->send_history->next->data) {
 
 					conv->send_history = conv->send_history->next;
-					gtk_text_buffer_set_text(gtkconv->entry_buffer,
-											 conv->send_history->data, -1);
+					gtk_imhtml_clear(GTK_IMHTML(gtkconv->entry));
+					gtk_imhtml_append_text_with_images(GTK_IMHTML(gtkconv->entry), conv->send_history->data, 0, NULL);
 				}
 
 				break;
@@ -1361,9 +1361,10 @@
 				if (conv->send_history->prev) {
 					conv->send_history = conv->send_history->prev;
 
-					if (conv->send_history->data)
-						gtk_text_buffer_set_text(gtkconv->entry_buffer,
-												 conv->send_history->data, -1);
+					if (conv->send_history->data) {
+						gtk_imhtml_clear(GTK_IMHTML(gtkconv->entry));
+						gtk_imhtml_append_text_with_images(GTK_IMHTML(gtkconv->entry), conv->send_history->data, 0, NULL);
+					}
 				}
 
 				break;
--- a/src/gtkimhtml.c	Mon Dec 08 00:43:56 2003 +0000
+++ b/src/gtkimhtml.c	Mon Dec 08 00:52:54 2003 +0000
@@ -643,7 +643,7 @@
 /* The callback for an event on a link tag. */
 gboolean tag_event(GtkTextTag *tag, GObject *imhtml, GdkEvent *event, GtkTextIter *arg2, char *url) {
 	GdkEventButton *event_button = (GdkEventButton *) event;
-	if (imhtml->editable)
+	if (GTK_IMHTML(imhtml)->editable)
 		return FALSE;
 	if (event->type == GDK_BUTTON_RELEASE) {
 		if (event_button->button == 1) {