better support for interfaces
This commit is contained in:
parent
8f23a4781b
commit
3d99d2cc50
8 changed files with 98 additions and 45 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue