@@ -459,7 +459,7 @@ static PyObject *App_DrawThemeMenuBarBackground(_self, _args)
459459 Rect inBounds ;
460460 ThemeMenuBarState inState ;
461461 UInt32 inAttributes ;
462- if (!PyArg_ParseTuple (_args , "O&hl " ,
462+ if (!PyArg_ParseTuple (_args , "O&Hl " ,
463463 PyMac_GetRect , & inBounds ,
464464 & inState ,
465465 & inAttributes ))
@@ -497,7 +497,7 @@ static PyObject *App_DrawThemeMenuBackground(_self, _args)
497497 OSStatus _err ;
498498 Rect inMenuRect ;
499499 ThemeMenuType inMenuType ;
500- if (!PyArg_ParseTuple (_args , "O&h " ,
500+ if (!PyArg_ParseTuple (_args , "O&H " ,
501501 PyMac_GetRect , & inMenuRect ,
502502 & inMenuType ))
503503 return NULL ;
@@ -517,7 +517,7 @@ static PyObject *App_GetThemeMenuBackgroundRegion(_self, _args)
517517 OSStatus _err ;
518518 Rect inMenuRect ;
519519 ThemeMenuType menuType ;
520- if (!PyArg_ParseTuple (_args , "O&h " ,
520+ if (!PyArg_ParseTuple (_args , "O&H " ,
521521 PyMac_GetRect , & inMenuRect ,
522522 & menuType ))
523523 return NULL ;
@@ -572,7 +572,7 @@ static PyObject *App_GetThemeMenuItemExtra(_self, _args)
572572 ThemeMenuItemType inItemType ;
573573 SInt16 outHeight ;
574574 SInt16 outWidth ;
575- if (!PyArg_ParseTuple (_args , "h " ,
575+ if (!PyArg_ParseTuple (_args , "H " ,
576576 & inItemType ))
577577 return NULL ;
578578 _err = GetThemeMenuItemExtra (inItemType ,
@@ -633,7 +633,7 @@ static PyObject *App_GetThemeTabRegion(_self, _args)
633633 Rect inRect ;
634634 ThemeTabStyle inStyle ;
635635 ThemeTabDirection inDirection ;
636- if (!PyArg_ParseTuple (_args , "O&hh " ,
636+ if (!PyArg_ParseTuple (_args , "O&HH " ,
637637 PyMac_GetRect , & inRect ,
638638 & inStyle ,
639639 & inDirection ))
@@ -696,7 +696,7 @@ static PyObject *App_GetThemeScrollBarThumbStyle(_self, _args)
696696 return NULL ;
697697 _err = GetThemeScrollBarThumbStyle (& outStyle );
698698 if (_err != noErr ) return PyMac_Error (_err );
699- _res = Py_BuildValue ("h " ,
699+ _res = Py_BuildValue ("H " ,
700700 outStyle );
701701 return _res ;
702702}
@@ -712,7 +712,7 @@ static PyObject *App_GetThemeScrollBarArrowStyle(_self, _args)
712712 return NULL ;
713713 _err = GetThemeScrollBarArrowStyle (& outStyle );
714714 if (_err != noErr ) return PyMac_Error (_err );
715- _res = Py_BuildValue ("h " ,
715+ _res = Py_BuildValue ("H " ,
716716 outStyle );
717717 return _res ;
718718}
@@ -728,7 +728,7 @@ static PyObject *App_GetThemeCheckBoxStyle(_self, _args)
728728 return NULL ;
729729 _err = GetThemeCheckBoxStyle (& outStyle );
730730 if (_err != noErr ) return PyMac_Error (_err );
731- _res = Py_BuildValue ("h " ,
731+ _res = Py_BuildValue ("H " ,
732732 outStyle );
733733 return _res ;
734734}
@@ -741,7 +741,7 @@ static PyObject *App_UseThemeFont(_self, _args)
741741 OSStatus _err ;
742742 ThemeFontID inFontID ;
743743 ScriptCode inScript ;
744- if (!PyArg_ParseTuple (_args , "hh " ,
744+ if (!PyArg_ParseTuple (_args , "Hh " ,
745745 & inFontID ,
746746 & inScript ))
747747 return NULL ;
@@ -853,7 +853,7 @@ static PyObject *App_DrawThemeScrollBarDelimiters(_self, _args)
853853 Rect inContRect ;
854854 ThemeDrawState state ;
855855 ThemeWindowAttributes attributes ;
856- if (!PyArg_ParseTuple (_args , "hO &ll" ,
856+ if (!PyArg_ParseTuple (_args , "HO &ll" ,
857857 & flavor ,
858858 PyMac_GetRect , & inContRect ,
859859 & state ,
@@ -948,7 +948,7 @@ static PyObject *App_DrawThemeStandaloneGrowBox(_self, _args)
948948 ThemeGrowDirection growDirection ;
949949 Boolean isSmall ;
950950 ThemeDrawState state ;
951- if (!PyArg_ParseTuple (_args , "O&hbl " ,
951+ if (!PyArg_ParseTuple (_args , "O&Hbl " ,
952952 PyMac_GetPoint , & origin ,
953953 & growDirection ,
954954 & isSmall ,
@@ -974,7 +974,7 @@ static PyObject *App_DrawThemeStandaloneNoGrowBox(_self, _args)
974974 ThemeGrowDirection growDirection ;
975975 Boolean isSmall ;
976976 ThemeDrawState state ;
977- if (!PyArg_ParseTuple (_args , "O&hbl " ,
977+ if (!PyArg_ParseTuple (_args , "O&Hbl " ,
978978 PyMac_GetPoint , & origin ,
979979 & growDirection ,
980980 & isSmall ,
@@ -1000,7 +1000,7 @@ static PyObject *App_GetThemeStandaloneGrowBoxBounds(_self, _args)
10001000 ThemeGrowDirection growDirection ;
10011001 Boolean isSmall ;
10021002 Rect bounds ;
1003- if (!PyArg_ParseTuple (_args , "O&hb " ,
1003+ if (!PyArg_ParseTuple (_args , "O&Hb " ,
10041004 PyMac_GetPoint , & origin ,
10051005 & growDirection ,
10061006 & isSmall ))
0 commit comments