disable the foreach macro for gtk4
This commit is contained in:
parent
f87aeda345
commit
0a6bbb59eb
1 changed files with 42 additions and 39 deletions
|
|
@ -411,6 +411,9 @@ gtk_container_foreach (
|
||||||
gpointer callback_data
|
gpointer callback_data
|
||||||
)
|
)
|
||||||
]#
|
]#
|
||||||
|
|
||||||
|
when not declared(gtk4): # only for old gtk3, gtk4 has no gtk.Container widget.
|
||||||
|
|
||||||
# https://docs.gtk.org/gtk3/method.Container.foreach.html
|
# https://docs.gtk.org/gtk3/method.Container.foreach.html
|
||||||
macro foreach*(container: gtk.Container; p: untyped; arg: typed): untyped =
|
macro foreach*(container: gtk.Container; p: untyped; arg: typed): untyped =
|
||||||
var foreachID {.compileTime, global.}: int
|
var foreachID {.compileTime, global.}: int
|
||||||
|
|
@ -450,4 +453,4 @@ $1($5, $4)
|
||||||
#echo r2s
|
#echo r2s
|
||||||
result = parseStmt(r1s & r2s)
|
result = parseStmt(r1s & r2s)
|
||||||
|
|
||||||
# 453 lines
|
# 456 lines
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue