From: Sean E. <sea...@us...> - 2002-08-02 04:49:26
|
Update of /cvsroot/gaim/gaim/src In directory usw-pr-cvs1:/tmp/cvs-serv9967/src Modified Files: prefs.c Log Message: this actually isn't finished yet--don't complain about it. Reccomended for use with gtk2. Index: prefs.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/prefs.c,v retrieving revision 1.227 retrieving revision 1.228 diff -u -d -r1.227 -r1.228 --- prefs.c 18 Jun 2002 00:49:55 -0000 1.227 +++ prefs.c 2 Aug 2002 04:49:23 -0000 1.228 @@ -1,7 +1,7 @@ /* * gaim * - * Copyright (C) 1998-1999, Mark Spencer <mar...@ma...> + * Copyright (C) 1998-2002, Mark Spencer <mar...@ma...> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -36,6 +36,10 @@ #include "gtkimhtml.h" #include "gaim.h" [...4450 lines suppressed...] + +#if !GTK_CHECK_VERSION(1,3,0) + for (i = 0; i < strlen(fontname); i++) { + if (fontname[i] == '-') { + if (++j > 2) + break; + } else if (j == 2) + fontface_new[k++] = fontname[i]; } + fontface_new[k] = '\0'; + g_snprintf(fontxfld_new, sizeof(fontxfld_new), "%s", fontname); +#else + while(fontname[i] && !isdigit(fontname[i]) && i < sizeof(fontface_new)) { + fontface_new[i] = fontname[i]; + i++; + } + +#endif + g_free(fontname); } |