- Timestamp:
- Jun 1, 2010, 1:25:15 AM (15 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- 7a6e6c7
- Parents:
- e00355d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
window.c
re00355d r7a70e26 233 233 } 234 234 235 void owl_window_children_foreach_onearg(owl_window *parent, void (*func)(owl_window*))236 {237 owl_window_children_foreach(parent, (GFunc)func, NULL);238 }239 240 235 owl_window *owl_window_get_parent(owl_window *w) 241 236 { … … 289 284 { 290 285 owl_window_show(w); 291 owl_window_children_foreach _onearg(w, owl_window_show);286 owl_window_children_foreach(w, (GFunc)owl_window_show, 0); 292 287 } 293 288 … … 331 326 owl_window_dirty(w); 332 327 /* map the children */ 333 owl_window_children_foreach _onearg(w, _owl_window_realize);328 owl_window_children_foreach(w, (GFunc)_owl_window_realize, 0); 334 329 } 335 330 … … 339 334 return; 340 335 /* unmap all the children */ 341 owl_window_children_foreach _onearg(w, _owl_window_unrealize);336 owl_window_children_foreach(w, (GFunc)_owl_window_unrealize, 0); 342 337 _owl_window_destroy_curses(w); 343 338 /* subwins leave a mess in the parent; dirty it */ … … 367 362 void owl_window_dirty_children(owl_window *w) 368 363 { 369 owl_window_children_foreach _onearg(w, owl_window_dirty);364 owl_window_children_foreach(w, (GFunc)owl_window_dirty, 0); 370 365 } 371 366 … … 385 380 return; 386 381 _owl_window_redraw(w); 387 owl_window_children_foreach _onearg(w, _owl_window_redraw_subtree);382 owl_window_children_foreach(w, (GFunc)_owl_window_redraw_subtree, 0); 388 383 } 389 384 … … 465 460 } 466 461 /* recalculate children sizes BEFORE remapping, so that everything can resize */ 467 owl_window_children_foreach _onearg(w, owl_window_recompute_position);462 owl_window_children_foreach(w, (GFunc)owl_window_recompute_position, 0); 468 463 if (w->shown) { 469 464 _owl_window_realize(w);
Note: See TracChangeset
for help on using the changeset viewer.