# HG changeset patch # User Eric Warmenhoven # Date 1008543244 0 # Node ID eef6c9ca18c9e13d99c5cf0de8ce11eff51baccf # Parent b0cfc5003cc840641ddcc27e7fe819708990e47b [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 diff -r b0cfc5003cc8 -r eef6c9ca18c9 src/gtkimhtml.c --- 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);