comparison src/gtkutils.c @ 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 7a05525e4197
children 3de53fe8345f
comparison
equal deleted inserted replaced
13201:6ff5271afedc 13202:241c59e3906b
125 sep = gtk_hseparator_new(); 125 sep = gtk_hseparator_new();
126 gtk_box_pack_start(GTK_BOX(vbox), sep, FALSE, FALSE, 0); 126 gtk_box_pack_start(GTK_BOX(vbox), sep, FALSE, FALSE, 0);
127 gtk_widget_show(sep); 127 gtk_widget_show(sep);
128 } 128 }
129 129
130 /*
131 * We never show the horizontal scrollbar in editable imhtmls becuase
132 * it was causing weird lockups when typing text just as you type the
133 * character that would cause both scrollbars to appear. Definitely
134 * seems like a gtk bug to me.
135 */
136 sw = gtk_scrolled_window_new(NULL, NULL); 130 sw = gtk_scrolled_window_new(NULL, NULL);
137 if (editable) 131 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw),
138 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw), 132 GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
139 GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
140 else
141 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw),
142 GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
143 gtk_box_pack_start(GTK_BOX(vbox), sw, TRUE, TRUE, 0); 133 gtk_box_pack_start(GTK_BOX(vbox), sw, TRUE, TRUE, 0);
144 gtk_widget_show(sw); 134 gtk_widget_show(sw);
145 135
146 imhtml = gtk_imhtml_new(NULL, NULL); 136 imhtml = gtk_imhtml_new(NULL, NULL);
147 gtk_imhtml_set_editable(GTK_IMHTML(imhtml), editable); 137 gtk_imhtml_set_editable(GTK_IMHTML(imhtml), editable);