From ba296f921087453ca36c45af4be4e2ff3d6007a5 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Tue, 5 Sep 2017 13:52:21 +0200 Subject: Add `ch` as size unit. --- test/box-test.c | 5 +++++ test/scrollbar-test.c | 4 ++++ test/theme-parser-test.c | 5 +++++ 3 files changed, 14 insertions(+) (limited to 'test') diff --git a/test/box-test.c b/test/box-test.c index 7cc437d3..0d276d63 100644 --- a/test/box-test.c +++ b/test/box-test.c @@ -84,6 +84,11 @@ int textbox_get_estimated_char_height ( void ) { return 16; } +double textbox_get_estimated_ch ( void ); +double textbox_get_estimated_ch ( void ) +{ + return 8; +} void rofi_view_get_current_monitor ( G_GNUC_UNUSED int *width, G_GNUC_UNUSED int *height ) { diff --git a/test/scrollbar-test.c b/test/scrollbar-test.c index f69b3eb7..0fb98019 100644 --- a/test/scrollbar-test.c +++ b/test/scrollbar-test.c @@ -74,6 +74,10 @@ double textbox_get_estimated_char_height ( void ) { return 16; } +double textbox_get_estimated_ch ( void ) +{ + return 8.0; +} void listview_set_selected ( G_GNUC_UNUSED listview *lv, G_GNUC_UNUSED unsigned int selected ) { diff --git a/test/theme-parser-test.c b/test/theme-parser-test.c index cd9e6ca6..53b15b9c 100644 --- a/test/theme-parser-test.c +++ b/test/theme-parser-test.c @@ -66,6 +66,11 @@ double textbox_get_estimated_char_height ( void ) return 16.0; } +double textbox_get_estimated_ch ( void ) +{ + return 8.0; +} + int monitor_active ( G_GNUC_UNUSED workarea *mon ) { return 0; -- cgit v1.2.3