comparison 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
comparison
equal deleted inserted replaced
4476:62c1e5e656d0 4477:2ea86ba4670b
725 ws[0] = 0; \ 725 ws[0] = 0; \
726 gtk_text_buffer_get_end_iter(imhtml->text_buffer, &iter); \ 726 gtk_text_buffer_get_end_iter(imhtml->text_buffer, &iter); \
727 if (x == NEW_HR_BIT) { \ 727 if (x == NEW_HR_BIT) { \
728 GtkTextChildAnchor *anchor = gtk_text_buffer_create_child_anchor(imhtml->text_buffer, &iter); \ 728 GtkTextChildAnchor *anchor = gtk_text_buffer_create_child_anchor(imhtml->text_buffer, &iter); \
729 GtkWidget *sep = gtk_hseparator_new(); \ 729 GtkWidget *sep = gtk_hseparator_new(); \
730 gtk_widget_set_size_request(GTK_WIDGET(sep), 5000, 2); \ 730 GdkRectangle rect; \
731 gtk_text_view_get_visible_rect(GTK_TEXT_VIEW(imhtml), &rect); \
732 gtk_widget_set_size_request(GTK_WIDGET(sep), rect.width, 2); \
731 gtk_text_view_add_child_at_anchor(GTK_TEXT_VIEW(imhtml), sep, anchor); \ 733 gtk_text_view_add_child_at_anchor(GTK_TEXT_VIEW(imhtml), sep, anchor); \
732 gtk_widget_show(sep); \ 734 gtk_widget_show(sep); \
733 } \ 735 } \
734 736
735 GString* gtk_imhtml_append_text (GtkIMHtml *imhtml, 737 GString* gtk_imhtml_append_text (GtkIMHtml *imhtml,