diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-09-01 00:29:10 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-09-01 00:29:10 (GMT) |
commit | 6a4e9e4c1d63d308331443682723526651630e9a (patch) | |
tree | 655c8b27f4021b79e7e33fce7faab4a00657b340 /win | |
parent | 09514c2ad2094155a7ba2cb9ce22ba7db4a02b2c (diff) | |
parent | 8685a0c21a281fa3d40718cb68d9bcd5363c5c1c (diff) | |
download | tk-6a4e9e4c1d63d308331443682723526651630e9a.zip tk-6a4e9e4c1d63d308331443682723526651630e9a.tar.gz tk-6a4e9e4c1d63d308331443682723526651630e9a.tar.bz2 |
Remove (apparent) unneeded Tk_GetUid() calls
Diffstat (limited to 'win')
-rw-r--r-- | win/tkWin3d.c | 11 | ||||
-rw-r--r-- | win/tkWinWm.c | 2 |
2 files changed, 6 insertions, 7 deletions
diff --git a/win/tkWin3d.c b/win/tkWin3d.c index 2c2181b..c5dfeb4 100644 --- a/win/tkWin3d.c +++ b/win/tkWin3d.c @@ -350,17 +350,17 @@ TkpGetShadows( if ((TkWinIndexOfColor(borderPtr->bgColorPtr) == COLOR_3DFACE) || (TkWinIndexOfColor(borderPtr->bgColorPtr) == COLOR_WINDOW)) { borderPtr->darkColorPtr = Tk_GetColor(NULL, tkwin, - Tk_GetUid("SystemButtonShadow")); + "SystemButtonShadow"); gcValues.foreground = borderPtr->darkColorPtr->pixel; borderPtr->darkGC = Tk_GetGC(tkwin, GCForeground, &gcValues); borderPtr->lightColorPtr = Tk_GetColor(NULL, tkwin, - Tk_GetUid("SystemButtonHighlight")); + "SystemButtonHighlight"); gcValues.foreground = borderPtr->lightColorPtr->pixel; borderPtr->lightGC = Tk_GetGC(tkwin, GCForeground, &gcValues); ((WinBorder*)borderPtr)->dark2ColorPtr = Tk_GetColor(NULL, tkwin, - Tk_GetUid("System3dDarkShadow")); + "System3dDarkShadow"); ((WinBorder*)borderPtr)->light2ColorPtr = Tk_GetColor(NULL, tkwin, - Tk_GetUid("System3dLight")); + "System3dLight"); return; } darkColor.red = 0; @@ -466,8 +466,7 @@ TkpGetShadows( } if (borderPtr->shadow == None) { - borderPtr->shadow = Tk_GetBitmap((Tcl_Interp *) NULL, tkwin, - Tk_GetUid("gray50")); + borderPtr->shadow = Tk_GetBitmap(NULL, tkwin, "gray50"); if (borderPtr->shadow == None) { Tcl_Panic("TkpGetShadows couldn't allocate bitmap for border"); } diff --git a/win/tkWinWm.c b/win/tkWinWm.c index 5a26143..8aef4fa 100644 --- a/win/tkWinWm.c +++ b/win/tkWinWm.c @@ -3080,7 +3080,7 @@ WmAttributesCmd( } } else { XColor *cPtr = - Tk_GetColor(interp, tkwin, Tk_GetUid(crefstr)); + Tk_GetColor(interp, tkwin, crefstr); if (cPtr == NULL) { return TCL_ERROR; } |