Changeset 402ed3d3 for window.c


Ignore:
Timestamp:
Jun 1, 2010, 12:25:27 AM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
3da1f4f
Parents:
50031f0
git-author:
David Benjamin <davidben@mit.edu> (06/01/10 00:16:33)
git-committer:
David Benjamin <davidben@mit.edu> (06/01/10 00:25:27)
Message:
Use two functions: show/show_all instead of recurse flag

It's more readable, and matches GTK.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • window.c

    r50031f0 r402ed3d3  
    7373    screen->is_screen = 1;
    7474    owl_window_set_size_cb(screen, _screen_calculate_size, &g, 0);
    75     owl_window_show(screen, 0);
     75    owl_window_show(screen);
    7676  }
    7777  return screen;
     
    271271}
    272272
    273 static void _map_recurse_curry(owl_window *w)
    274 {
    275   owl_window_show(w, 1);
    276 }
    277 
    278 void owl_window_show(owl_window *w, int recurse)
     273void owl_window_show(owl_window *w)
    279274{
    280275  w->shown = 1;
     
    282277  if (w->pan)
    283278    show_panel(w->pan);
    284   if (recurse)
    285     owl_window_children_foreach_onearg(w, _map_recurse_curry);
     279}
     280
     281void owl_window_show_all(owl_window *w)
     282{
     283  owl_window_show(w);
     284  owl_window_children_foreach_onearg(w, owl_window_show);
    286285}
    287286
Note: See TracChangeset for help on using the changeset viewer.