Sat, 11 Aug 2007 17:57:43 +0000
Don't scroll to bottom if imhtml is not realized. Fixes #2320
| pidgin/gtkimhtml.c | file | annotate | diff | comparison | revisions |
--- 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); }