From c7e49df7d6ceb529e1f4bea4026eff033e11ff7d Mon Sep 17 00:00:00 2001 From: Stefan Salewski Date: Sun, 14 Nov 2021 10:10:09 +0100 Subject: [PATCH] added temp. fix for nnkTupleConstr --- gintro/gimplgobj.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gintro/gimplgobj.nim b/gintro/gimplgobj.nim index ead1ab7..ef0db55 100644 --- a/gintro/gimplgobj.nim +++ b/gintro/gimplgobj.nim @@ -87,7 +87,10 @@ macro mconnect(widget: gobject.Object; signal: string; p: typed; arg: typed; ign let wts = widget.getTypeInst.owner.strVal & '.' & widget.getTypeInst.strVal # new in v0.5.5 var ats: string # v0.9.7 - if at.kind == nnkRefTy: + + if at.kind == nnkTupleConstr: + ats = at.toStrLit.strVal + elif at.kind == nnkRefTy: ats = at.getType[0].strVal & " " & at.getType[1].owner.strVal & '.' & at.getType[1].strVal else: ats = at.owner.strVal & '.' & at.toStrLit.strVal