diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-06-02 16:25:47 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-06-02 16:25:47 +0200 |
commit | 9915857a2ec4d13d83a963252264394fb7ce3f28 (patch) | |
tree | c4b7ee0efcb6946195919a585809e7c3e2d5a96a /source/view.c | |
parent | 7352f1c2bacb1da3dc603f88da54176ddc5f9107 (diff) |
Change Distance struct to RofiDistance.
Diffstat (limited to 'source/view.c')
-rw-r--r-- | source/view.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/view.c b/source/view.c index 9b7595da..b66f327c 100644 --- a/source/view.c +++ b/source/view.c @@ -346,8 +346,8 @@ static void rofi_view_calculate_window_position ( RofiViewState *state ) break; } // Apply offset. - Distance x = rofi_theme_get_distance ( WIDGET ( state->main_window ), "x-offset", config.x_offset ); - Distance y = rofi_theme_get_distance ( WIDGET ( state->main_window ), "y-offset", config.y_offset ); + RofiDistance x = rofi_theme_get_distance ( WIDGET ( state->main_window ), "x-offset", config.x_offset ); + RofiDistance y = rofi_theme_get_distance ( WIDGET ( state->main_window ), "y-offset", config.y_offset ); state->x += distance_get_pixel ( x, ORIENTATION_HORIZONTAL ); state->y += distance_get_pixel ( y, ORIENTATION_VERTICAL ); } @@ -807,7 +807,7 @@ static void rofi_view_calculate_window_width ( RofiViewState *state ) state->width = config.menu_width < 101 ? ( CacheState.mon.w / 100.0f ) * ( float ) config.menu_width : config.menu_width; } // Use theme configured width, if set. - Distance width = rofi_theme_get_distance ( WIDGET ( state->main_window ), "width", state->width ); + RofiDistance width = rofi_theme_get_distance ( WIDGET ( state->main_window ), "width", state->width ); state->width = distance_get_pixel ( width, ORIENTATION_HORIZONTAL ); } |