diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2006-02-07 11:33:18 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2006-02-07 11:33:18 (GMT) |
commit | dcbd07d255f872ce6907e3af83c6fd3b52f30e05 (patch) | |
tree | 348587ffd09f3dd7b852ee309d537942cc50100f /unix | |
parent | 033138140e825770a2732e336aa5f6941998b905 (diff) | |
download | tk-dcbd07d255f872ce6907e3af83c6fd3b52f30e05.zip tk-dcbd07d255f872ce6907e3af83c6fd3b52f30e05.tar.gz tk-dcbd07d255f872ce6907e3af83c6fd3b52f30e05.tar.bz2 |
Scope the config a bit better; it only needs to be visible inside one function.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tkUnixRFont.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/unix/tkUnixRFont.c b/unix/tkUnixRFont.c index fef354b..0421573 100644 --- a/unix/tkUnixRFont.c +++ b/unix/tkUnixRFont.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkUnixRFont.c,v 1.11 2006/02/07 11:25:26 dkf Exp $ + * RCS: @(#) $Id: tkUnixRFont.c,v 1.12 2006/02/07 11:33:18 dkf Exp $ */ #include "tkUnixInt.h" @@ -41,10 +41,10 @@ typedef struct { * Forward declarations... */ +static void FinishedWithFont(UnixFtFont *fontPtr); static XftFont * GetFont(UnixFtFont *fontPtr, FcChar32 ucs4); static UnixFtFont * InitFont(Tk_Window tkwin, FcPattern *pattern, UnixFtFont *fontPtr); -static void FinishedWithFont(UnixFtFont *fontPtr); /* * Package initialization: @@ -56,15 +56,15 @@ static void FinishedWithFont(UnixFtFont *fontPtr); #define TCL_CFGVAL_ENCODING "ascii" #endif -static Tcl_Config cfg[] = { - { "fontsystem", "xft" }, - { 0,0 } -}; - void TkpFontPkgInit( TkMainInfo *mainPtr) /* The application being created. */ { + static Tcl_Config cfg[] = { + { "fontsystem", "xft" }, + { 0,0 } + }; + Tcl_RegisterConfig(mainPtr->interp, "tk", cfg, TCL_CFGVAL_ENCODING); } |