# HG changeset patch # User Sadrul Habib Chowdhury # Date 1168718911 0 # Node ID 3abb476aab94b36fb41206ffa36360ffea1c495b # Parent f19b9b39d71a0d04b804158eef5021160dbcf1fb [gaim-migrate @ 18120] This change makes it possible to select, fixes the crash from opening the debug window. committer: Tailor Script diff -r f19b9b39d71a -r 3abb476aab94 gtk/gtkimhtml.c --- 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)