Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4b367359
Commit
4b367359
authored
Jan 09, 2002
by
Just van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed TrackMouseRegion() argument: ioWasInRgn is an in/out parameter.
parent
3e3eacb5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
Mac/Modules/carbonevt/CarbonEvtscan.py
Mac/Modules/carbonevt/CarbonEvtscan.py
+4
-2
Mac/Modules/carbonevt/_CarbonEvtmodule.c
Mac/Modules/carbonevt/_CarbonEvtmodule.c
+4
-3
No files found.
Mac/Modules/carbonevt/CarbonEvtscan.py
View file @
4b367359
...
...
@@ -109,8 +109,10 @@ class CarbonEvents_Scanner(Scanner_OSX):
def
makerepairinstructions
(
self
):
return
[
([(
"UInt32"
,
'inSize'
,
"InMode"
),
(
"void_ptr"
,
'inDataPtr'
,
"InMode"
)],
[(
"MyInBuffer"
,
'inDataPtr'
,
"InMode"
)])
[(
"MyInBuffer"
,
'inDataPtr'
,
"InMode"
)]),
([(
"Boolean"
,
'ioWasInRgn'
,
"OutMode"
)],
[(
"Boolean"
,
'ioWasInRgn'
,
"InOutMode"
)]),
]
if
__name__
==
"__main__"
:
main
()
Mac/Modules/carbonevt/_CarbonEvtmodule.c
View file @
4b367359
...
...
@@ -1447,9 +1447,10 @@ static PyObject *CarbonEvents_TrackMouseRegion(PyObject *_self, PyObject *_args)
RgnHandle
inRegion
;
Boolean
ioWasInRgn
;
UInt16
outResult
;
if
(
!
PyArg_ParseTuple
(
_args
,
"O&O&"
,
if
(
!
PyArg_ParseTuple
(
_args
,
"O&O&
b
"
,
GrafObj_Convert
,
&
inPort
,
ResObj_Convert
,
&
inRegion
))
ResObj_Convert
,
&
inRegion
,
&
ioWasInRgn
))
return
NULL
;
_err
=
TrackMouseRegion
(
inPort
,
inRegion
,
...
...
@@ -1795,7 +1796,7 @@ static PyMethodDef CarbonEvents_methods[] = {
{
"TrackMouseLocationWithOptions"
,
(
PyCFunction
)
CarbonEvents_TrackMouseLocationWithOptions
,
1
,
"(GrafPtr inPort, OptionBits inOptions, double inTimeout) -> (Point outPt, UInt32 outModifiers, UInt16 outResult)"
},
{
"TrackMouseRegion"
,
(
PyCFunction
)
CarbonEvents_TrackMouseRegion
,
1
,
"(GrafPtr inPort, RgnHandle inRegion) -> (Boolean ioWasInRgn, UInt16 outResult)"
},
"(GrafPtr inPort, RgnHandle inRegion
, Boolean ioWasInRgn
) -> (Boolean ioWasInRgn, UInt16 outResult)"
},
{
"GetLastUserEventTime"
,
(
PyCFunction
)
CarbonEvents_GetLastUserEventTime
,
1
,
"() -> (double _rv)"
},
{
"GetWindowEventTarget"
,
(
PyCFunction
)
CarbonEvents_GetWindowEventTarget
,
1
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment