Changeset 6425d43 for popwin.c


Ignore:
Timestamp:
Sep 18, 2010, 3:17:27 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
4cf7b1b
Parents:
dc9665a
git-author:
David Benjamin <davidben@mit.edu> (07/31/10 20:03:53)
git-committer:
David Benjamin <davidben@mit.edu> (09/18/10 15:17:27)
Message:
Don't cause confusion if owl_popwin_up on an active popwin

Likewise, inactive popwins should not be closeable. The function returns
int, so we may as well return an error, but no one checks that.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • popwin.c

    r05ca0d8 r6425d43  
    99int owl_popwin_up(owl_popwin *pw)
    1010{
     11  if (pw->active)
     12    return 1;
    1113  pw->border = owl_window_new(NULL);
    1214  pw->content = owl_window_new(pw->border);
     
    6971int owl_popwin_close(owl_popwin *pw)
    7072{
     73  if (!pw->active)
     74    return 1;
    7175  owl_window_unlink(pw->border);
    7276  g_object_unref(pw->border);
Note: See TracChangeset for help on using the changeset viewer.