diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-06-02 16:34:52 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-06-02 16:34:52 +0200 |
commit | ea7d20d1503836eba0c16f8a1960b8f462911f0f (patch) | |
tree | cf6dd94d66466930f71d32b2e64a759c8fed5238 /source/theme.c | |
parent | 9915857a2ec4d13d83a963252264394fb7ce3f28 (diff) |
Change Orientation enum to RofiOrientation.
Diffstat (limited to 'source/theme.c')
-rw-r--r-- | source/theme.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 ); |