# HG changeset patch # User Mark Doliner # Date 1139460032 0 # Node ID 241c59e3906b3555a5a9de4746755dea597be0a5 # Parent 6ff5271afedc85b2b5e739928957b494dec3a171 [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 diff -r 6ff5271afedc -r 241c59e3906b src/gtkutils.c --- 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);