@@ -253,7 +253,7 @@ static void CacheWinEventHandler(void *clientData, XEvent *eventPtr)
253253 * InitCacheWindow --
254254 * Specify the cache window if not already set.
255255 */
256- static void InitCacheWindow (Ttk_ResourceCache cache , Tk_Window tkwin )
256+ static void InitCacheWindow (Ttk_ResourceCache cache )
257257{
258258 if (cache -> tkwin == NULL ) {
259259 cache -> tkwin = Tk_MainWindow (cache -> interp );
@@ -278,7 +278,7 @@ void Ttk_RegisterNamedColor(
278278 Tcl_Obj * colorNameObj ;
279279
280280 snprintf (nameBuf , sizeof (nameBuf ), "#%04X%04X%04X" ,
281- colorPtr -> red , colorPtr -> green , colorPtr -> blue );
281+ colorPtr -> red , colorPtr -> green , colorPtr -> blue );
282282 colorNameObj = Tcl_NewStringObj (nameBuf , -1 );
283283 Tcl_IncrRefCount (colorNameObj );
284284
@@ -300,7 +300,7 @@ void Ttk_RegisterNamedColor(
300300static Tcl_Obj * CheckNamedColor (Ttk_ResourceCache cache , Tcl_Obj * objPtr )
301301{
302302 Tcl_HashEntry * entryPtr =
303- Tcl_FindHashEntry (& cache -> namedColors , Tcl_GetString (objPtr ));
303+ Tcl_FindHashEntry (& cache -> namedColors , Tcl_GetString (objPtr ));
304304 if (entryPtr ) { /* Use named color instead */
305305 objPtr = (Tcl_Obj * )Tcl_GetHashValue (entryPtr );
306306 }
@@ -386,7 +386,7 @@ static Tcl_Obj *Ttk_Use(
386386 */
387387Tcl_Obj * Ttk_UseFont (Ttk_ResourceCache cache , Tk_Window tkwin , Tcl_Obj * objPtr )
388388{
389- InitCacheWindow (cache , tkwin );
389+ InitCacheWindow (cache );
390390 return Ttk_Use (cache -> interp ,
391391 & cache -> fontTable , AllocFont , tkwin , objPtr );
392392}
@@ -398,7 +398,7 @@ Tcl_Obj *Ttk_UseFont(Ttk_ResourceCache cache, Tk_Window tkwin, Tcl_Obj *objPtr)
398398Tcl_Obj * Ttk_UseColor (Ttk_ResourceCache cache , Tk_Window tkwin , Tcl_Obj * objPtr )
399399{
400400 objPtr = CheckNamedColor (cache , objPtr );
401- InitCacheWindow (cache , tkwin );
401+ InitCacheWindow (cache );
402402 return Ttk_Use (cache -> interp ,
403403 & cache -> colorTable , AllocColor , tkwin , objPtr );
404404}
@@ -411,7 +411,7 @@ Tcl_Obj *Ttk_UseBorder(
411411 Ttk_ResourceCache cache , Tk_Window tkwin , Tcl_Obj * objPtr )
412412{
413413 objPtr = CheckNamedColor (cache , objPtr );
414- InitCacheWindow (cache , tkwin );
414+ InitCacheWindow (cache );
415415 return Ttk_Use (cache -> interp ,
416416 & cache -> borderTable , AllocBorder , tkwin , objPtr );
417417}
@@ -442,7 +442,7 @@ Tk_Image Ttk_UseImage(Ttk_ResourceCache cache, Tk_Window tkwin, Tcl_Obj *objPtr)
442442 Tcl_HashEntry * entryPtr ;
443443 Tk_Image image ;
444444
445- InitCacheWindow (cache , tkwin );
445+ InitCacheWindow (cache );
446446#if !NEED_EXTRA_INFO
447447 entryPtr = Tcl_CreateHashEntry (& cache -> imageTable , imageName , & newEntry );
448448#else
0 commit comments