notnil fix for Nim 0.19
This commit is contained in:
parent
32b3018a7b
commit
f7e692dbe2
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue