Changeset 402ed3d3


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.
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • popwin.c

    r50031f0 r402ed3d3  
    1414  owl_window_set_size_cb(pw->border, owl_popwin_size_border, 0, 0);
    1515  owl_window_set_size_cb(pw->content, owl_popwin_size_content, 0, 0);
    16   owl_window_show(pw->border, 1);
     16  owl_window_show_all(pw->border);
    1717
    1818  pw->active=1;
  • 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
  • window.h

    r50031f0 r402ed3d3  
    1919owl_window *owl_window_get_parent(owl_window *w);
    2020
    21 void owl_window_show(owl_window *w, int recurse);
     21void owl_window_show(owl_window *w);
     22void owl_window_show_all(owl_window *w);
    2223void owl_window_hide(owl_window *w);
    2324int owl_window_is_shown(owl_window *w);
Note: See TracChangeset for help on using the changeset viewer.