Mercurial > pidgin
comparison src/gtkimhtml.c @ 8735:92cbf9713795
[gaim-migrate @ 9490]
Patch by Jonathan Champ to corect the vairous speling mistakes we hav e in
the coments and documentaion. Thansk Jonathan!
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 21 Apr 2004 01:34:26 +0000 |
parents | 7024b9145357 |
children | 61a090413b93 |
comparison
equal
deleted
inserted
replaced
8734:407c122d6191 | 8735:92cbf9713795 |
---|---|
3070 * Just in case I do do this, I asked about what to set the secondary text cursor to. | 3070 * Just in case I do do this, I asked about what to set the secondary text cursor to. |
3071 * | 3071 * |
3072 * (12:45:27) ?? ???: secondary_cursor_color = (rgb(background) + rgb(primary_cursor_color) ) / 2 | 3072 * (12:45:27) ?? ???: secondary_cursor_color = (rgb(background) + rgb(primary_cursor_color) ) / 2 |
3073 * (12:45:55) ?? ???: understand? | 3073 * (12:45:55) ?? ???: understand? |
3074 * (12:46:14) Tim: yeah. i didn't know there was an exact formula | 3074 * (12:46:14) Tim: yeah. i didn't know there was an exact formula |
3075 * (12:46:56) ?? ???: u might need to exactract separate each color from RGB | 3075 * (12:46:56) ?? ???: u might need to extract separate each color from RGB |
3076 */ | 3076 */ |
3077 | 3077 |
3078 static void mark_set_cb(GtkTextBuffer *buffer, GtkTextIter *arg1, GtkTextMark *mark, | 3078 static void mark_set_cb(GtkTextBuffer *buffer, GtkTextIter *arg1, GtkTextMark *mark, |
3079 GtkIMHtml *imhtml) | 3079 GtkIMHtml *imhtml) |
3080 { | 3080 { |
3522 | 3522 |
3523 /* Basic notion here: traverse through the text buffer one-by-one, non-character elements, such | 3523 /* Basic notion here: traverse through the text buffer one-by-one, non-character elements, such |
3524 * as smileys and IM images are represented by the Unicode "unknown" character. Handle them. Else | 3524 * as smileys and IM images are represented by the Unicode "unknown" character. Handle them. Else |
3525 * check for tags that are toggled on, insert their html form, and push them on the queue. Then insert | 3525 * check for tags that are toggled on, insert their html form, and push them on the queue. Then insert |
3526 * the actual text. Then check for tags that are toggled off and insert them, after checking the queue. | 3526 * the actual text. Then check for tags that are toggled off and insert them, after checking the queue. |
3527 * Finally, replace <, >, &, and " with their HTML equivilent. | 3527 * Finally, replace <, >, &, and " with their HTML equivalent. |
3528 */ | 3528 */ |
3529 char *gtk_imhtml_get_markup_range(GtkIMHtml *imhtml, GtkTextIter *start, GtkTextIter *end) | 3529 char *gtk_imhtml_get_markup_range(GtkIMHtml *imhtml, GtkTextIter *start, GtkTextIter *end) |
3530 { | 3530 { |
3531 gunichar c; | 3531 gunichar c; |
3532 GtkTextIter iter, nextiter; | 3532 GtkTextIter iter, nextiter; |