mirror of
https://github.com/davatorium/rofi.git
synced 2025-04-14 17:43:01 -04: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.
|
||||
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 );
|
||||
|
|
Loading…
Add table
Reference in a new issue