changeset 15330:3abb476aab94

[gaim-migrate @ 18120] This change makes it possible to select, fixes the crash from opening the debug window. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 13 Jan 2007 20:08:31 +0000
parents f19b9b39d71a
children af72af491b24
files gtk/gtkimhtml.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/gtkimhtml.c	Sat Jan 13 18:46:55 2007 +0000
+++ b/gtk/gtkimhtml.c	Sat Jan 13 20:08:31 2007 +0000
@@ -2409,6 +2409,8 @@
 	ws[0] = 0;
 
 	imhtml->adj = gtk_adjustment_get_value(adj);
+	gtk_widget_hide(GTK_WIDGET(imhtml));
+	gtk_widget_unrealize(GTK_WIDGET(imhtml));
 	gtk_text_view_set_buffer(GTK_TEXT_VIEW(imhtml), imhtml->empty_buffer);
 
 	while (pos < len) {
@@ -3067,12 +3069,13 @@
 	if (!imhtml->wbfo)
 		gtk_imhtml_close_tags(imhtml, iter);
 
+	gtk_text_view_set_buffer(GTK_TEXT_VIEW(imhtml), imhtml->text_buffer);
+	gtk_widget_realize(GTK_WIDGET(imhtml));
+	gtk_widget_show_all(GTK_WIDGET(imhtml));
 	object = g_object_ref(G_OBJECT(imhtml));
-	gtk_text_view_set_buffer(GTK_TEXT_VIEW(imhtml), imhtml->text_buffer);
 	g_idle_add(set_adj_idle_cb, imhtml);
 	g_signal_emit(object, signals[UPDATE_FORMAT], 0);
 	g_object_unref(object);
-
 }
 
 void gtk_imhtml_remove_smileys(GtkIMHtml *imhtml)