[gaim-migrate @ 15565]

Thu, 09 Feb 2006 04:40:32 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Thu, 09 Feb 2006 04:40:32 +0000
changeset 13203
bdb98c8e5b56
parent 13202
f5f21ca5b5a6
child 13204
50677241bbbd

[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.

src/gtkutils.c file | annotate | diff | comparison | revisions
--- 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);
 

mercurial