summaryrefslogtreecommitdiffstats
path: root/test
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 /test
parent6dae152e3179f83d69c63850745e6638a280222e (diff)
Add `ch` as size unit.
Diffstat (limited to 'test')
-rw-r--r--test/box-test.c5
-rw-r--r--test/scrollbar-test.c4
-rw-r--r--test/theme-parser-test.c5
3 files changed, 14 insertions, 0 deletions
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;