# HG changeset patch # User Sean Egan # Date 1186855063 0 # Node ID 88c6bf371abba93cb00e49e50ff7be36a3283372 # Parent 6ae4e6996c9f13258b7b04d0b98505429ed180a6 Don't scroll to bottom if imhtml is not realized. Fixes #2320 diff -r 6ae4e6996c9f -r 88c6bf371abb pidgin/gtkimhtml.c --- a/pidgin/gtkimhtml.c Sat Aug 11 17:24:37 2007 +0000 +++ b/pidgin/gtkimhtml.c Sat Aug 11 17:57:43 2007 +0000 @@ -388,7 +388,8 @@ parent_size_allocate(widget, alloc); /* Don't scroll here if we're in the middle of a smooth scroll */ - if (scroll && imhtml->scroll_time == NULL) + if (scroll && imhtml->scroll_time == NULL && + GTK_WIDGET_REALIZED(imhtml)) gtk_imhtml_scroll_to_end(imhtml, FALSE); }