diff options
author | jenglish <jenglish@flightlab.com> | 2006-12-14 19:51:02 (GMT) |
---|---|---|
committer | jenglish <jenglish@flightlab.com> | 2006-12-14 19:51:02 (GMT) |
commit | b822c063c5281f853e702026499f46c31b47e518 (patch) | |
tree | eddfc995a90320e7557281183d21567f58985d44 /generic/ttk/ttkImage.c | |
parent | d4a63ee0259256e40eba77a360b9902afc472bc4 (diff) | |
download | tk-b822c063c5281f853e702026499f46c31b47e518.zip tk-b822c063c5281f853e702026499f46c31b47e518.tar.gz tk-b822c063c5281f853e702026499f46c31b47e518.tar.bz2 |
Global reduction: use per-file *_Init() routines to reduce
the number of globally-visible initialization records.
Diffstat (limited to 'generic/ttk/ttkImage.c')
-rw-r--r-- | generic/ttk/ttkImage.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/generic/ttk/ttkImage.c b/generic/ttk/ttkImage.c index 7f0a2af..acc4e8f 100644 --- a/generic/ttk/ttkImage.c +++ b/generic/ttk/ttkImage.c @@ -1,4 +1,4 @@ -/* $Id: ttkImage.c,v 1.4 2006/12/09 20:53:35 jenglish Exp $ +/* $Id: ttkImage.c,v 1.5 2006/12/14 19:51:04 jenglish Exp $ * Image specifications and image element factory. * * Copyright (C) 2004 Pat Thoyts <patthoyts@users.sf.net> @@ -408,11 +408,10 @@ error: return TCL_ERROR; } -MODULE_SCOPE int Ttk_ImageInit(Tcl_Interp *); -int Ttk_ImageInit(Tcl_Interp *interp) +MODULE_SCOPE +void TtkImage_Init(Tcl_Interp *interp) { - return Ttk_RegisterElementFactory(interp, "image", - Ttk_CreateImageElement, NULL); + Ttk_RegisterElementFactory(interp, "image", Ttk_CreateImageElement, NULL); } /*EOF*/ |