diff options
author | donal.k.fellows@manchester.ac.uk <dkf> | 2006-02-07 11:33:18 (GMT) |
---|---|---|
committer | donal.k.fellows@manchester.ac.uk <dkf> | 2006-02-07 11:33:18 (GMT) |
commit | 4bbf6a621b7378d7621defad5d5713b9d3d41704 (patch) | |
tree | 348587ffd09f3dd7b852ee309d537942cc50100f /unix | |
parent | fbf974dccb298a538bae48a45643667cd23696d2 (diff) | |
download | tk-4bbf6a621b7378d7621defad5d5713b9d3d41704.zip tk-4bbf6a621b7378d7621defad5d5713b9d3d41704.tar.gz tk-4bbf6a621b7378d7621defad5d5713b9d3d41704.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); } |