diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-01-10 11:20:38 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-01-10 11:20:38 +0100 |
commit | 17155867a197ee296205770d7fff15185efd6172 (patch) | |
tree | 783735a88f8a05ef5620f210cb7a349edd6bbdf1 /source | |
parent | 268b0fa3b01790f3ce011621e0be26fc605f38a7 (diff) |
Add a quick theme tutorial.
Diffstat (limited to 'source')
-rw-r--r-- | source/view.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/view.c b/source/view.c index bcb37836..79a246de 100644 --- a/source/view.c +++ b/source/view.c @@ -660,7 +660,7 @@ void __create_window ( MenuFlags menu_flags ) } // Setup font. // Dummy widget. - container *win = container_create ( "window" ); + container *win = container_create ( "window.box" ); char *font = rofi_theme_get_string ( WIDGET ( win ), "font", config.menu_font ); if ( font ) { PangoFontDescription *pfd = pango_font_description_from_string ( font ); @@ -1517,7 +1517,7 @@ RofiViewState *rofi_view_create ( Mode *sw, // Get active monitor size. TICK_N ( "Get active monitor" ); - state->main_window = container_create ( "window" ); + state->main_window = container_create ( "window.box" ); state->main_box = box_create ( "window.mainbox.box", BOX_VERTICAL ); container_add ( state->main_window, WIDGET ( state->main_box ) ); @@ -1615,7 +1615,7 @@ int rofi_view_error_dialog ( const char *msg, int markup ) state->menu_flags = MENU_ERROR_DIALOG; state->finalize = process_result; - state->main_window = container_create ( "window" ); + state->main_window = container_create ( "window box" ); state->main_box = box_create ( "window.mainbox.message.box", BOX_VERTICAL ); container_add ( state->main_window, WIDGET ( state->main_box ) ); state->text = textbox_create ( "window.mainbox.message.textbox", ( TB_AUTOHEIGHT | TB_WRAP ) + ( ( markup ) ? TB_MARKUP : 0 ), |