summaryrefslogtreecommitdiffstats
path: root/source/theme.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/theme.c')
-rw-r--r--source/theme.c6
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 );