From ef5c13e2c3a067a12e5df6b7a7128a789dfcef86 Mon Sep 17 00:00:00 2001 From: Stefan Salewski Date: Mon, 15 Nov 2021 09:56:15 +0100 Subject: [PATCH] one more ugly tuple fix for mconnect() --- gintro/gimplgobj.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gintro/gimplgobj.nim b/gintro/gimplgobj.nim index ef0db55..b4cc004 100644 --- a/gintro/gimplgobj.nim +++ b/gintro/gimplgobj.nim @@ -88,7 +88,10 @@ macro mconnect(widget: gobject.Object; signal: string; p: typed; arg: typed; ign var ats: string # v0.9.7 - if at.kind == nnkTupleConstr: + #echo ">>>>>>>>", at.kind + #echo at.toStrLit.strVal + + if at.kind == nnkTupleConstr or at.kind == nnkTupleTy: ats = at.toStrLit.strVal elif at.kind == nnkRefTy: ats = at.getType[0].strVal & " " & at.getType[1].owner.strVal & '.' & at.getType[1].strVal