Mercurial > pidgin.yaz
comparison src/gtkimhtml.c @ 4629:86fd0f6eaa1a
[gaim-migrate @ 4920]
This doesn't do anything mysterious. I met this cat one that didn't
do anything mysterious. Some people thought it was dead, but one
time I saw it walk around.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 01 Mar 2003 02:30:24 +0000 |
parents | c05e6ecdc902 |
children | 5cdfd20daa07 |
comparison
equal
deleted
inserted
replaced
4628:ebae85185165 | 4629:86fd0f6eaa1a |
---|---|
26 #include <gtk/gtk.h> | 26 #include <gtk/gtk.h> |
27 #include <gdk/gdkkeysyms.h> | 27 #include <gdk/gdkkeysyms.h> |
28 #include <string.h> | 28 #include <string.h> |
29 #include <ctype.h> | 29 #include <ctype.h> |
30 #include <stdio.h> | 30 #include <stdio.h> |
31 #include <stdlib.h> | |
31 #include <math.h> | 32 #include <math.h> |
32 #ifdef HAVE_LANGINFO_CODESET | 33 #ifdef HAVE_LANGINFO_CODESET |
33 #include <langinfo.h> | 34 #include <langinfo.h> |
34 #include <locale.h> | 35 #include <locale.h> |
35 #endif | 36 #endif |
961 | 962 |
962 if (face && !(options & GTK_IMHTML_NO_FONTS)) | 963 if (face && !(options & GTK_IMHTML_NO_FONTS)) |
963 font->face = face; | 964 font->face = face; |
964 else if (oldfont && oldfont->face) | 965 else if (oldfont && oldfont->face) |
965 font->face = g_strdup(oldfont->face); | 966 font->face = g_strdup(oldfont->face); |
967 if (font->face && (atoi(font->face) > 100)) { | |
968 g_free(font->face); | |
969 font->face = g_strdup("100"); | |
970 } | |
966 | 971 |
967 if (sml) | 972 if (sml) |
968 font->sml = sml; | 973 font->sml = sml; |
969 else if (oldfont && oldfont->sml) | 974 else if (oldfont && oldfont->sml) |
970 font->sml = g_strdup(oldfont->sml); | 975 font->sml = g_strdup(oldfont->sml); |