better support for interfaces

This commit is contained in:
Stefan Salewski 2017-09-27 20:53:08 +02:00
commit 3d99d2cc50
8 changed files with 98 additions and 45 deletions

View file

@ -21,7 +21,7 @@ proc b4Callback(button: Button; w: ApplicationWindow) =
else:
w.title = "Nim with GTK3"
proc activate (app: Application) =
proc appActivate (app: Application) =
var o: O
var r: ref O
new r
@ -47,7 +47,7 @@ proc activate (app: Application) =
proc main =
let app = newApplication("org.gtk.example")
connect(app, "activate", activate)
connect(app, "activate", appActivate)
discard app.run
main()