Mercurial > pidgin
changeset 4343:36cb0bb95b9c
[gaim-migrate @ 4608]
HR works again. Thanks, KingAnt (Mark Doliner). This is rather hackish (The 5000 width) but hey.. it seems to work okay. Let me know if you have any problems with it. If someone wants to do this The Right Way (tm) then please feel free to do so..
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Sun, 19 Jan 2003 03:29:00 +0000 |
parents | 051265d35a36 |
children | d6f1086d52a6 |
files | src/gtkimhtml.c |
diffstat | 1 files changed, 7 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkimhtml.c Sat Jan 18 22:43:22 2003 +0000 +++ b/src/gtkimhtml.c Sun Jan 19 03:29:00 2003 +0000 @@ -578,6 +578,7 @@ #define NEW_TEXT_BIT 0 #define NEW_HR_BIT 1 +#define NEW_COMMENT_BIT 2 #define NEW_BIT(x) ws [wpos] = '\0'; \ mark2 = gtk_text_buffer_create_mark(imhtml->text_buffer, NULL, &iter, TRUE); \ gtk_text_buffer_insert(imhtml->text_buffer, &iter, ws, -1); \ @@ -629,16 +630,13 @@ wpos = 0; \ ws[0] = 0; \ gtk_text_buffer_get_end_iter(imhtml->text_buffer, &iter); \ - - -/* if (x == NEW_HR_BIT) { \ - sep = gtk_hseparator_new(); \ - gtk_widget_size_request(GTK_WIDGET(imhtml), &req); \ - gtk_widget_set_size_request(sep, 20, -1); \ - anchor = gtk_text_buffer_create_child_anchor(imhtml->text_buffer, &iter); \ + 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); \ gtk_text_view_add_child_at_anchor(GTK_TEXT_VIEW(imhtml), sep, anchor); \ gtk_widget_show(sep); \ - } */ + } \ GString* gtk_imhtml_append_text (GtkIMHtml *imhtml, const gchar *text, @@ -785,6 +783,7 @@ case 42: /* HR (opt) */ ws[wpos++] = '\n'; NEW_BIT(NEW_HR_BIT); + ws[wpos++] = '\n'; break; case 27: /* /FONT */ if (fonts) {