From c49c47542c0c901d30184f4adb2977a7cd06af34 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Mon, 28 Dec 2015 11:33:22 +0100 Subject: [PATCH] Fix textbox test, set global PangoContext --- test/textbox-test.c | 5 +++++ 1 file changed, 5 insertions(+) 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 );