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/renderers/curses/curses.c | 2 +- lib/renderers/wayland/wayland.c | 2 +- lib/renderers/x11/x11.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/renderers') diff --git a/lib/renderers/curses/curses.c b/lib/renderers/curses/curses.c index 78449ac..af54846 100644 --- a/lib/renderers/curses/curses.c +++ b/lib/renderers/curses/curses.c @@ -358,7 +358,7 @@ register_renderer(struct render_api *api) api->get_displayed_count = get_displayed_count; api->poll_key = poll_key; api->render = render; - api->prioritory = BM_PRIO_TERMINAL; + api->priorty = BM_PRIO_TERMINAL; api->version = BM_PLUGIN_VERSION; return "curses"; } diff --git a/lib/renderers/wayland/wayland.c b/lib/renderers/wayland/wayland.c index a3866c6..252d86f 100644 --- a/lib/renderers/wayland/wayland.c +++ b/lib/renderers/wayland/wayland.c @@ -234,7 +234,7 @@ register_renderer(struct render_api *api) api->get_displayed_count = get_displayed_count; api->poll_key = poll_key; api->render = render; - api->prioritory = BM_PRIO_GUI; + api->priorty = BM_PRIO_GUI; api->version = BM_PLUGIN_VERSION; return "wayland"; } diff --git a/lib/renderers/x11/x11.c b/lib/renderers/x11/x11.c index 3e29efe..81ccc5d 100644 --- a/lib/renderers/x11/x11.c +++ b/lib/renderers/x11/x11.c @@ -226,7 +226,7 @@ register_renderer(struct render_api *api) api->set_bottom = set_bottom; api->set_monitor = set_monitor; api->grab_keyboard = grab_keyboard; - api->prioritory = BM_PRIO_GUI; + api->priorty = BM_PRIO_GUI; api->version = BM_PLUGIN_VERSION; return "x11"; } -- cgit v1.2.3-70-g09d2