From ea7d20d1503836eba0c16f8a1960b8f462911f0f Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Fri, 2 Jun 2017 16:34:52 +0200 Subject: Change Orientation enum to RofiOrientation. --- source/theme.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/theme.c') diff --git a/source/theme.c b/source/theme.c index ad586ee7..12e5fa37 100644 --- a/source/theme.c +++ b/source/theme.c @@ -541,7 +541,7 @@ int rofi_theme_get_boolean ( const widget *widget, const char *property, int def g_debug ( "Theme entry: #%s %s property %s unset.", widget->name, widget->state ? widget->state : "", property ); return def; } -Orientation rofi_theme_get_orientation ( const widget *widget, const char *property, Orientation def ) +RofiOrientation rofi_theme_get_orientation ( const widget *widget, const char *property, RofiOrientation def ) { ThemeWidget *wid = rofi_theme_find_widget ( widget->name, widget->state, FALSE ); Property *p = rofi_theme_find_property ( wid, P_ORIENTATION, property, FALSE ); @@ -637,13 +637,13 @@ ThemeHighlight rofi_theme_get_highlight ( widget *widget, const char *property, return th; } -int distance_get_pixel ( RofiDistance d, Orientation ori ) +int distance_get_pixel ( RofiDistance d, RofiOrientation ori ) { if ( d.type == ROFI_PU_EM ) { return d.distance * textbox_get_estimated_char_height (); } else if ( d.type == ROFI_PU_PERCENT ) { - if ( ori == ORIENTATION_VERTICAL ) { + if ( ori == ROFI_ORIENTATION_VERTICAL ) { int height = 0; rofi_view_get_current_monitor ( NULL, &height ); return ( d.distance * height ) / ( 100.0 ); -- cgit v1.2.3