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:
parent
61cabc91da
commit
c49c47542c
1 changed files with 5 additions and 0 deletions
|
@ -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 );
|
||||||
|
|
Loading…
Reference in a new issue