foreach
function foreach(data:gpointer, foreach_func:Gtk.AccelMapForeach):void { // Gjs wrapper for gtk_accel_map_foreach() }
Loops over the entries in the accelerator map whose accel path doesn't match any of the filters added with add_filter, and execute foreach_func on each. The signature of foreach_func is that of Gtk.AccelMapForeach, the @changed parameter indicates whether this accelerator was changed during runtime (thus, would need saving during an accelerator map dump).
- data
data to be passed into foreach_func
- foreach_func
function to be executed for each accel map entry which is not filtered out