Mercurial > pidgin.yaz
changeset 2898:eef6c9ca18c9
[gaim-migrate @ 2911]
i once had a girlfriend
but then one day she dumped me
and everywhere i went
people would ask me.... where she wa-a-as
I don't wanna talk about her
someone always asks about her
so i tell them all
MY GIRLFRIEND'S DEAD!
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sun, 16 Dec 2001 22:54:04 +0000 |
parents | b0cfc5003cc8 |
children | 019d7462337b |
files | src/gtkimhtml.c |
diffstat | 1 files changed, 11 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkimhtml.c Sun Dec 16 22:47:15 2001 +0000 +++ b/src/gtkimhtml.c Sun Dec 16 22:54:04 2001 +0000 @@ -3033,8 +3033,17 @@ font->back = gtk_imhtml_get_color (back); if (face && !(options & GTK_IMHTML_NO_FONTS)) font->face = g_strdup (face); - if (size && !(options & GTK_IMHTML_NO_SIZES)) - sscanf (size, "%hd", &font->size); + if (size && !(options & GTK_IMHTML_NO_SIZES)) { + if (*size == '+') { + sscanf (size + 1, "%hd", &font->size); + font->size += 3; + } else if (*size == '-') { + sscanf (size + 1, "%hd", &font->size); + font->size = MAX (0, 3 - font->size); + } else if (isdigit (*size)) { + sscanf (size, "%hd", &font->size); + } + } g_free (color); g_free (back);