summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2015-12-28 11:33:22 +0100
committerDave Davenport <qball@gmpclient.org>2015-12-28 11:33:22 +0100
commitc49c47542c0c901d30184f4adb2977a7cd06af34 (patch)
tree27a2f75b9f4fd78172c725cd24a02fd1087249d1 /test
parent61cabc91da3fe5e9f6eaf8cdab59386f870141a3 (diff)
Fix textbox test, set global PangoContext
Diffstat (limited to 'test')
-rw-r--r--test/textbox-test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/textbox-test.c b/test/textbox-test.c
index a57a767e..2277a92f 100644
--- a/test/textbox-test.c
+++ b/test/textbox-test.c
@@ -91,6 +91,11 @@ int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv )
// Set alternate row to normal row.
config.menu_bg_alt = config.menu_bg;
textbox_setup ( display );
+ PangoContext *p = pango_cairo_create_context ( draw );
+ textbox_set_pango_context ( p );
+ // cleanup
+ g_object_unref ( p );
+
textbox *box = textbox_create ( TB_EDITABLE | TB_AUTOWIDTH | TB_AUTOHEIGHT, 0, 0, -1, -1,
NORMAL, "test" );
TASSERT ( box != NULL );