From f7e692dbe2edef5b3d655e03f3b8c2d86dce05e6 Mon Sep 17 00:00:00 2001 From: Stefan Salewski Date: Sun, 30 Sep 2018 20:45:01 +0200 Subject: [PATCH] notnil fix for Nim 0.19 --- gintro.nimble | 4 ++-- gintro/gimpl.nim | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gintro.nimble b/gintro.nimble index 882baa6..406f1de 100644 --- a/gintro.nimble +++ b/gintro.nimble @@ -1,6 +1,6 @@ # Package -version = "0.4.5" +version = "0.4.6" author = "Stefan Salewski" description = "High level GObject-Introspection based GTK3 bindings" license = "MIT" @@ -8,7 +8,7 @@ skipDirs = @["examples", "tests"] # Dependencies -requires "nim >= 0.18.0" +requires "nim >= 0.19.0" when defined(nimdistros): import distros diff --git a/gintro/gimpl.nim b/gintro/gimpl.nim index d1ca3c7..e3e3c3c 100644 --- a/gintro/gimpl.nim +++ b/gintro/gimpl.nim @@ -67,7 +67,7 @@ macro mconnect(widget: gobject.Object; signal: string; p: typed; arg: typed; ign proc $1$2 {.cdecl.} = let h: pointer = g_object_get_qdata(self, Quark) """ - if sci.isNil or sci == "": # the simple signals + if sci == "": # the simple signals all = "(self: ptr gobject.Object00; xdata: pointer)" ahl = "(self: gobject.Object)" r1s.add(" $3(cast[$4](h)")