diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2015-01-17 18:53:29 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2015-01-17 18:53:29 +0200 |
commit | 074b2d1b5894f12fae78a569ea507612616663ff (patch) | |
tree | 505af8b2e0a82993d2d070afcf42fe303dbf1302 /lib/library.c | |
parent | b32b8db5236f86007cd37aecbcc64060b2038fc2 (diff) | |
download | bemenu-074b2d1b5894f12fae78a569ea507612616663ff.tar.gz bemenu-074b2d1b5894f12fae78a569ea507612616663ff.tar.bz2 bemenu-074b2d1b5894f12fae78a569ea507612616663ff.zip |
Remove --backend and --prioritory options, change prioritory -> priorty
and provide BEMENU_BACKEND env variable. Change API to reflect this
change.
There is no reliable way to detect when running on terminal (especially
when stdin is a pipe), so we need to make curses backend explicit with
BEMENU_BACKEND=curses or bm_menu_new("curses"), otherwise GUI backend
will be choosed automatically.
Diffstat (limited to 'lib/library.c')
-rw-r--r-- | lib/library.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/library.c b/lib/library.c index 2dc59fc..02c2af8 100644 --- a/lib/library.c +++ b/lib/library.c @@ -67,7 +67,7 @@ static int compare(const void *a, const void *b) { const struct bm_renderer *ra = *(struct bm_renderer**)a, *rb = *(struct bm_renderer**)b; - return (ra->api.prioritory > rb->api.prioritory); + return (ra->api.priorty > rb->api.priorty); } static bool @@ -180,11 +180,11 @@ bm_renderer_get_name(const struct bm_renderer *renderer) return renderer->name; } -enum bm_prioritory -bm_renderer_get_prioritory(const struct bm_renderer *renderer) +enum bm_priorty +bm_renderer_get_priorty(const struct bm_renderer *renderer) { assert(renderer); - return renderer->api.prioritory; + return renderer->api.priorty; } /* vim: set ts=8 sw=4 tw=0 :*/ |