Mercurial > pidgin
changeset 3705:91498932cea7
[gaim-migrate @ 3838]
first message bug, and apparently a random scroll up on tab switch (sometimes) (thanks Deryni!)
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Tue, 15 Oct 2002 05:34:58 +0000 |
parents | 04a911e7dfc9 |
children | 8cd8deb4234d |
files | ChangeLog src/conversation.c src/gtkimhtml.c |
diffstat | 3 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)
--- 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) {
--- 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"); +}