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/widgets | |
parent | 7352f1c2bacb1da3dc603f88da54176ddc5f9107 (diff) |
Change Distance struct to RofiDistance.
Diffstat (limited to 'source/widgets')
-rw-r--r-- | source/widgets/box.c | 2 | ||||
-rw-r--r-- | source/widgets/listview.c | 2 | ||||
-rw-r--r-- | source/widgets/textbox.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/source/widgets/box.c b/source/widgets/box.c index 1063625d..3b843e29 100644 --- a/source/widgets/box.c +++ b/source/widgets/box.c @@ -43,7 +43,7 @@ struct _box Orientation type; int max_size; // Padding between elements - Distance spacing; + RofiDistance spacing; GList *children; }; diff --git a/source/widgets/listview.c b/source/widgets/listview.c index 3398429a..ea55a269 100644 --- a/source/widgets/listview.c +++ b/source/widgets/listview.c @@ -72,7 +72,7 @@ struct _listview unsigned int req_elements; unsigned int cur_elements; - Distance spacing; + RofiDistance spacing; unsigned int menu_lines; unsigned int max_displayed_lines; unsigned int menu_columns; diff --git a/source/widgets/textbox.c b/source/widgets/textbox.c index 6c978b12..c867ac15 100644 --- a/source/widgets/textbox.c +++ b/source/widgets/textbox.c @@ -901,7 +901,7 @@ int textbox_get_desired_width ( widget *wid ) if ( wid->expand && tb->flags & TB_AUTOWIDTH ) { return textbox_get_font_width ( tb ) + widget_padding_get_padding_width ( wid ) + offset; } - Distance w = rofi_theme_get_distance ( WIDGET ( tb ), "width", 0 ); + RofiDistance w = rofi_theme_get_distance ( WIDGET ( tb ), "width", 0 ); int wi = distance_get_pixel ( w, ORIENTATION_HORIZONTAL ); if ( wi > 0 ) { |