Mercurial > pidgin
diff src/gtkimhtml.c @ 4477:2ea86ba4670b
[gaim-migrate @ 4752]
hopefully this will stop the info window from scrolling sideways as you select text.
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Thu, 30 Jan 2003 18:55:17 +0000 |
parents | 64d845f2a0fb |
children | c05e6ecdc902 |
line wrap: on
line diff
--- a/src/gtkimhtml.c Thu Jan 30 18:45:50 2003 +0000 +++ b/src/gtkimhtml.c Thu Jan 30 18:55:17 2003 +0000 @@ -727,7 +727,9 @@ if (x == NEW_HR_BIT) { \ GtkTextChildAnchor *anchor = gtk_text_buffer_create_child_anchor(imhtml->text_buffer, &iter); \ GtkWidget *sep = gtk_hseparator_new(); \ - gtk_widget_set_size_request(GTK_WIDGET(sep), 5000, 2); \ + GdkRectangle rect; \ + gtk_text_view_get_visible_rect(GTK_TEXT_VIEW(imhtml), &rect); \ + gtk_widget_set_size_request(GTK_WIDGET(sep), rect.width, 2); \ gtk_text_view_add_child_at_anchor(GTK_TEXT_VIEW(imhtml), sep, anchor); \ gtk_widget_show(sep); \ } \