aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/api_gen/wx_gen.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2018-04-04 13:08:33 +0200
committerDan Gudmundsson <[email protected]>2018-04-04 13:08:33 +0200
commitcb7a9a70e9c04b972906013fd44dac86ec0b442e (patch)
treee79f2d286212e3359f5cb489874bb9d655c962d0 /lib/wx/api_gen/wx_gen.erl
parentf99860259ee557851acc865519a315f04d1d4d51 (diff)
downloadotp-cb7a9a70e9c04b972906013fd44dac86ec0b442e.tar.gz
otp-cb7a9a70e9c04b972906013fd44dac86ec0b442e.tar.bz2
otp-cb7a9a70e9c04b972906013fd44dac86ec0b442e.zip
Add new "constants" to wxGLCanvas
They can't be constants because the order differ between 3.0.3 and 3.1. So they must be looked up in runtime.
Diffstat (limited to 'lib/wx/api_gen/wx_gen.erl')
-rw-r--r--lib/wx/api_gen/wx_gen.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/wx/api_gen/wx_gen.erl b/lib/wx/api_gen/wx_gen.erl
index ab70a588ab..4ba57501a5 100644
--- a/lib/wx/api_gen/wx_gen.erl
+++ b/lib/wx/api_gen/wx_gen.erl
@@ -93,9 +93,10 @@ mangle_info(E={not_const,List}) ->
put(not_const, [atom_to_list(M) || M <- List]),
E;
mangle_info(E={gvars,List}) ->
- A2L = fun({N,{T,C}}) -> {atom_to_list(N), {T,atom_to_list(C)}};
+ A2L = fun({N,{test_if,C}}) -> {atom_to_list(N), {test_if,C}};
+ ({N,{T,C}}) -> {atom_to_list(N), {T,atom_to_list(C)}};
({N,C}) -> {atom_to_list(N), atom_to_list(C)}
- end,
+ end,
put(gvars, map(A2L,List)),
E;
mangle_info({class,CN,P,O,FL}) ->