Change Listview::barview to Listview::layout

This commit is contained in:
Dave Davenport
2017-06-03 21:46:21 +02:00
parent c29f897d69
commit e12cf40e54

View File

@@ -39,8 +39,8 @@
typedef enum typedef enum
{ {
LISTVIEW = 0, LISTVIEW = ROFI_ORIENTATION_VERTICAL,
BARVIEW = 1, BARVIEW = ROFI_ORIENTATION_HORIZONTAL,
} ViewType; } ViewType;
typedef enum 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->reverse = rofi_theme_get_boolean ( WIDGET ( lv ), "reverse", reverse );
lv->cycle = rofi_theme_get_boolean ( WIDGET ( lv ), "cycle", config.cycle ); 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 ) { if ( lv->type == LISTVIEW ) {
listview_set_show_scrollbar ( lv, rofi_theme_get_boolean ( WIDGET ( lv ), "scrollbar", FALSE ) ); listview_set_show_scrollbar ( lv, rofi_theme_get_boolean ( WIDGET ( lv ), "scrollbar", FALSE ) );
} }