changeset 13202:241c59e3906b

[gaim-migrate @ 15565] fix sf bug #1413457 Having the horizontal scrollbar set to NEVER was causing weird bugs with the new status dialog where typing into the imhtml would cause the window to grow in width and the text would not wrap (well, it would eventually). I know having the horizontal scrollbar set to AUTOMATIC was causing problems in the past, but I played around with it and everything seems ok to me. If this becomes a problem I'm thinking we can set it to the horizontal policy to NEVER for editable imhtmls when using GTK < 2.4.0. I think maybe our use of GTK_WRAP_WORD_CHAR might be a partial cause of the bug mentioned in the comment that I'm removing. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 09 Feb 2006 04:40:32 +0000
parents 6ff5271afedc
children 1455bbb38194
files src/gtkutils.c
diffstat 1 files changed, 2 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkutils.c	Thu Feb 09 04:25:27 2006 +0000
+++ b/src/gtkutils.c	Thu Feb 09 04:40:32 2006 +0000
@@ -127,19 +127,9 @@
 		gtk_widget_show(sep);
 	}
 
-	/*
-	 * We never show the horizontal scrollbar in editable imhtmls becuase
-	 * it was causing weird lockups when typing text just as you type the
-	 * character that would cause both scrollbars to appear.  Definitely
-	 * seems like a gtk bug to me.
-	 */
 	sw = gtk_scrolled_window_new(NULL, NULL);
-	if (editable)
-		gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw),
-									   GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
-	else
-		gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw),
-									   GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+	gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw),
+								   GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
 	gtk_box_pack_start(GTK_BOX(vbox), sw, TRUE, TRUE, 0);
 	gtk_widget_show(sw);