From e12cf40e545dd9c966c0fc927148e1378f8c38cc Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Sat, 3 Jun 2017 21:46:21 +0200 Subject: [PATCH] Change Listview::barview to Listview::layout --- source/widgets/listview.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/widgets/listview.c b/source/widgets/listview.c index b0425ac8..4e5c6bb1 100644 --- a/source/widgets/listview.c +++ b/source/widgets/listview.c @@ -39,8 +39,8 @@ typedef enum { - LISTVIEW = 0, - BARVIEW = 1, + LISTVIEW = ROFI_ORIENTATION_VERTICAL, + BARVIEW = ROFI_ORIENTATION_HORIZONTAL, } ViewType; typedef enum @@ -551,7 +551,7 @@ listview *listview_create ( const char *name, listview_update_callback cb, void lv->reverse = rofi_theme_get_boolean ( WIDGET ( lv ), "reverse", reverse ); lv->cycle = rofi_theme_get_boolean ( WIDGET ( lv ), "cycle", config.cycle ); - lv->type = rofi_theme_get_boolean ( WIDGET ( lv ), "barview", FALSE ); + lv->type = rofi_theme_get_orientation ( WIDGET ( lv ), "layout", ROFI_ORIENTATION_VERTICAL ); if ( lv->type == LISTVIEW ) { listview_set_show_scrollbar ( lv, rofi_theme_get_boolean ( WIDGET ( lv ), "scrollbar", FALSE ) ); }