# HG changeset patch # User Luke Schierer # Date 1034660098 0 # Node ID 91498932cea78d60f25db8a35f32531b7f53fb83 # Parent 04a911e7dfc9eb75271b09c79f25f0137faef8e7 [gaim-migrate @ 3838] first message bug, and apparently a random scroll up on tab switch (sometimes) (thanks Deryni!) committer: Tailor Script diff -r 04a911e7dfc9 -r 91498932cea7 ChangeLog --- a/ChangeLog Mon Oct 14 19:55:07 2002 +0000 +++ b/ChangeLog Tue Oct 15 05:34:58 2002 +0000 @@ -92,6 +92,7 @@ * File send/receive support for Oscar (Thanks, William T. Mahan) * Option to have AIM over oscar notify you if you have unread mail (Thanks, Mark Doliner) + * Fix first message in tab not displaying bug (Thanks Etan Reisner) version 0.59 (06/24/2002): * Hungarian translation added (Thanks, Sutto Zoltan) diff -r 04a911e7dfc9 -r 91498932cea7 src/conversation.c --- a/src/conversation.c Mon Oct 14 19:55:07 2002 +0000 +++ b/src/conversation.c Tue Oct 15 05:34:58 2002 +0000 @@ -189,6 +189,7 @@ update_checkbox(c); update_smilies(c); plugin_event(event_new_conversation, name); + gtk_imhtml_to_bottom(c->text); return c; } @@ -2666,6 +2667,8 @@ gtk_widget_destroy(convo_menubar); convo_menubar = NULL; } + + gtk_imhtml_to_bottom(c->text); } void show_typing(struct conversation *c) { diff -r 04a911e7dfc9 -r 91498932cea7 src/gtkimhtml.c --- a/src/gtkimhtml.c Mon Oct 14 19:55:07 2002 +0000 +++ b/src/gtkimhtml.c Tue Oct 15 05:34:58 2002 +0000 @@ -3665,3 +3665,16 @@ vadj->upper - vadj->page_size)); gtk_signal_emit_by_name (GTK_OBJECT (vadj), "changed"); } + +void +gtk_imhtml_to_bottom (GtkIMHtml *imhtml) +{ + GtkAdjustment *vadj; + + g_return_if_fail (imhtml != NULL); + g_return_if_fail (GTK_IS_IMHTML (imhtml)); + + vadj = GTK_LAYOUT (imhtml)->vadjustment; + gtk_adjustment_set_value (vadj, vadj->upper - vadj->page_size); + gtk_signal_emit_by_name (GTK_OBJECT (vadj), "changed"); +}