changeset 19261:88c6bf371abb

Don't scroll to bottom if imhtml is not realized. Fixes #2320
author Sean Egan <seanegan@gmail.com>
date Sat, 11 Aug 2007 17:57:43 +0000
parents 6ae4e6996c9f
children 450090c68351
files pidgin/gtkimhtml.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);	
 }