From 3ba2a7def586eb779774eff9a73df85e97dc112e Mon Sep 17 00:00:00 2001 From: Stefan Salewski Date: Wed, 20 May 2020 21:46:43 +0200 Subject: [PATCH] renamed optional parameter of connect macro to user_data --- README.adoc | 2 +- gintro.nimble | 2 +- gintro/gimpl.nim | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.adoc b/README.adoc index 3107e29..fb35fd2 100644 --- a/README.adoc +++ b/README.adoc @@ -1,6 +1,6 @@ = High level GTK3 (and GTK4) bindings for the Nim programming language (c) Stefan Salewski -//Version 0.7.5 +//Version 0.7.6 :experimental: :imagesdir: http://ssalewski.de/tmp :source-highlighter: pygments diff --git a/gintro.nimble b/gintro.nimble index f08b393..4c8bd1d 100644 --- a/gintro.nimble +++ b/gintro.nimble @@ -1,6 +1,6 @@ # Package -version = "0.7.5" +version = "0.7.6" author = "Stefan Salewski" description = "High level GObject-Introspection based GTK3/GTK4 bindings" license = "MIT" diff --git a/gintro/gimpl.nim b/gintro/gimpl.nim index 119dbb2..7f12093 100644 --- a/gintro/gimpl.nim +++ b/gintro/gimpl.nim @@ -158,14 +158,14 @@ proc $1$2 {.cdecl.} = r1s.add(" " & names[i] & "1.impl = " & names[i] & "\n") if not ignoreArg.boolVal: if getTypeInst(arg).typeKind == ntyRef: - resu.add(", cast[$5](data)") + resu.add(", cast[$5](user_data)") else: - resu.add(", cast[ptr $5](data)[]") + resu.add(", cast[ptr $5](user_data)[]") resu.add(")") if resl == "gboolean": resu.add(".ord.gboolean") r1s.add(resu & "\n") - all = all.replace(")", "; data: pointer)") + all = all.replace(")", "; user_data: pointer)") r1s = r1s % [$procNameCdecl, all, $p, wts, ats] # echo r1s result = parseStmt(r1s) @@ -426,4 +426,4 @@ $1(column, renderer, $6) """ % [$procName, ats, $column, $renderer, $procNameCdecl, argStr, $procNameDestroy] result = parseStmt(r0s & r1s & r2s) -# 423 lines +# 429 lines