1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -05:00

Fix textbox test, set global PangoContext

This commit is contained in:
Dave Davenport 2015-12-28 11:33:22 +01:00
parent 61cabc91da
commit c49c47542c

View file

@ -91,6 +91,11 @@ int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv )
// Set alternate row to normal row. // Set alternate row to normal row.
config.menu_bg_alt = config.menu_bg; config.menu_bg_alt = config.menu_bg;
textbox_setup ( display ); 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, textbox *box = textbox_create ( TB_EDITABLE | TB_AUTOWIDTH | TB_AUTOHEIGHT, 0, 0, -1, -1,
NORMAL, "test" ); NORMAL, "test" );
TASSERT ( box != NULL ); TASSERT ( box != NULL );