summaryrefslogtreecommitdiffstats
path: root/source/theme.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-09-05 13:52:21 +0200
committerDave Davenport <qball@gmpclient.org>2017-09-05 13:52:21 +0200
commitba296f921087453ca36c45af4be4e2ff3d6007a5 (patch)
tree9c67f8f2c0973f28fb469bba13ea805fee29bf25 /source/theme.c
parent6dae152e3179f83d69c63850745e6638a280222e (diff)
Add `ch` as size unit.
Diffstat (limited to 'source/theme.c')
-rw-r--r--source/theme.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/theme.c b/source/theme.c
index 92cf416a..9691b77c 100644
--- a/source/theme.c
+++ b/source/theme.c
@@ -635,6 +635,9 @@ 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_CH ) {
+ return d.distance * textbox_get_estimated_ch ();
+ }
else if ( d.type == ROFI_PU_PERCENT ) {
if ( ori == ROFI_ORIENTATION_VERTICAL ) {
int height = 0;