File: fix-joystick-stubs.patch

package info (click to toggle)
wxpython4.0 4.0.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 211,112 kB
  • sloc: cpp: 888,355; python: 223,130; makefile: 52,087; ansic: 45,780; sh: 3,012; xml: 1,534; perl: 264
file content (28 lines) | stat: -rw-r--r-- 908 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 0c0437b18d2f70d1be8e190a172f6bd806bb2409 Mon Sep 17 00:00:00 2001
From: Scott Talbert <swt@techie.net>
Date: Sun, 6 Jan 2019 23:23:59 -0500
Subject: [PATCH] Fix joystick stub compilation

Fixes #1125
---
 etg/joystick.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/etg/joystick.py b/etg/joystick.py
index 8508ceda..9f4534ee 100644
--- a/etg/joystick.py
+++ b/etg/joystick.py
@@ -36,8 +36,8 @@ def run():
     assert isinstance(c, etgtools.ClassDef)
     c.mustHaveApp()
 
-    c.addItem(MethodDef(name='GetMaxButtons', type='int', isConst=True))
-    c.addItem(MethodDef(name='GetMaxAxes', type='int', isConst=True))
+    c.addItem(MethodDef(name='GetMaxButtons', type='int', isConst=True, argsString='() const'))
+    c.addItem(MethodDef(name='GetMaxAxes', type='int', isConst=True, argsString='() const'))
 
     tools.generateStubs('wxUSE_JOYSTICK', module)
 
-- 
2.20.1