Update of /cvsroot/gaim/gaim/src
In directory usw-pr-cvs1:/tmp/cvs-serv3635
Modified Files:
gtkimhtml.c
Log Message:
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!
Index: gtkimhtml.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/gtkimhtml.c,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -d -r1.92 -r1.93
--- gtkimhtml.c 2001/12/16 22:47:15 1.92
+++ gtkimhtml.c 2001/12/16 22:54:04 1.93
@@ -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);
|