From 074b2d1b5894f12fae78a569ea507612616663ff Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Sat, 17 Jan 2015 18:53:29 +0200 Subject: 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. --- lib/library.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/library.c') 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 :*/ -- cgit v1.2.3-70-g09d2