Mercurial > pidgin.yaz
comparison src/dialogs.c @ 2856:b1e300a85678
[gaim-migrate @ 2869]
rewrote the html parser in gtkimhtml. yes, that's really all i did. the reason for the massive change is because i added a length argument, which then needed to be propogated down to everything that would ever receive anything that would get drawn to the window.
the new parser isn't any faster. that wasn't my goal. it's much more understandable now (hopefully, anyway).
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 08 Dec 2001 09:48:52 +0000 |
parents | 6eb5bf5089f0 |
children | 538c58b43eff |
comparison
equal
deleted
inserted
replaced
2855:19f786779b08 | 2856:b1e300a85678 |
---|---|
1844 options ^= GTK_IMHTML_NO_COMMENTS; | 1844 options ^= GTK_IMHTML_NO_COMMENTS; |
1845 options ^= GTK_IMHTML_NO_TITLE; | 1845 options ^= GTK_IMHTML_NO_TITLE; |
1846 options ^= GTK_IMHTML_NO_NEWLINE; | 1846 options ^= GTK_IMHTML_NO_NEWLINE; |
1847 options ^= GTK_IMHTML_NO_SCROLL; | 1847 options ^= GTK_IMHTML_NO_SCROLL; |
1848 | 1848 |
1849 gtk_imhtml_append_text(GTK_IMHTML(b->text), info, options); | 1849 gtk_imhtml_append_text(GTK_IMHTML(b->text), info, -1, options); |
1850 | 1850 |
1851 va_start(ap, info); | 1851 va_start(ap, info); |
1852 while ((more_info = va_arg(ap, char *)) != NULL) | 1852 while ((more_info = va_arg(ap, char *)) != NULL) |
1853 gtk_imhtml_append_text(GTK_IMHTML(b->text), more_info, options); | 1853 gtk_imhtml_append_text(GTK_IMHTML(b->text), more_info, -1, options); |
1854 va_end(ap); | 1854 va_end(ap); |
1855 | 1855 |
1856 gtk_imhtml_append_text(GTK_IMHTML(b->text), "<BR>", 0); | 1856 gtk_imhtml_append_text(GTK_IMHTML(b->text), "<BR>", -1, 0); |
1857 | 1857 |
1858 if (away) | 1858 if (away) |
1859 info_dlgs = g_slist_remove(info_dlgs, b); | 1859 info_dlgs = g_slist_remove(info_dlgs, b); |
1860 else | 1860 else |
1861 serv_get_away(gc, who); | 1861 serv_get_away(gc, who); |
3582 | 3582 |
3583 /* don't lose the thirtieth line of conversation. thanks FeRD */ | 3583 /* don't lose the thirtieth line of conversation. thanks FeRD */ |
3584 g_string_append(string, buf); | 3584 g_string_append(string, buf); |
3585 | 3585 |
3586 if (i == 30) { | 3586 if (i == 30) { |
3587 gtk_imhtml_append_text(GTK_IMHTML(view->layout), string->str, view->options); | 3587 gtk_imhtml_append_text(GTK_IMHTML(view->layout), string->str, -1, view->options); |
3588 g_string_free(string, TRUE); | 3588 g_string_free(string, TRUE); |
3589 string = g_string_new(""); | 3589 string = g_string_new(""); |
3590 /* you can't have these anymore. if someone clicks on another item while one is | 3590 /* you can't have these anymore. if someone clicks on another item while one is |
3591 * drawing, it will try to move to that item, and that causes problems here. | 3591 * drawing, it will try to move to that item, and that causes problems here. |
3592 while (gtk_events_pending()) | 3592 while (gtk_events_pending()) |
3594 */ | 3594 */ |
3595 i = 0; | 3595 i = 0; |
3596 } | 3596 } |
3597 | 3597 |
3598 } | 3598 } |
3599 gtk_imhtml_append_text(GTK_IMHTML(view->layout), string->str, view->options); | 3599 gtk_imhtml_append_text(GTK_IMHTML(view->layout), string->str, -1, view->options); |
3600 gtk_imhtml_append_text(GTK_IMHTML(view->layout), "<BR>", view->options); | 3600 gtk_imhtml_append_text(GTK_IMHTML(view->layout), "<BR>", -1, view->options); |
3601 | 3601 |
3602 gtk_widget_set_sensitive(view->bbox, TRUE); | 3602 gtk_widget_set_sensitive(view->bbox, TRUE); |
3603 gtk_signal_disconnect(GTK_OBJECT(view->window), block); | 3603 gtk_signal_disconnect(GTK_OBJECT(view->window), block); |
3604 gtk_signal_connect(GTK_OBJECT(view->window), "delete_event", | 3604 gtk_signal_connect(GTK_OBJECT(view->window), "delete_event", |
3605 GTK_SIGNAL_FUNC(destroy_dialog), view->window); | 3605 GTK_SIGNAL_FUNC(destroy_dialog), view->window); |