From 149dc49d4f0a49889a55705095cef437b875a92a Mon Sep 17 00:00:00 2001 From: "P. F. Chimento" Date: Sat, 18 Jun 2011 15:03:43 +0200 Subject: [PATCH] Avoid code duplication --- libchimara/style.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libchimara/style.c b/libchimara/style.c index 9b82a66..207a7f7 100644 --- a/libchimara/style.c +++ b/libchimara/style.c @@ -405,8 +405,6 @@ create_css_file_scanner(void) void scan_css_file(GScanner *scanner, ChimaraGlk *glk) { - CHIMARA_GLK_USE_PRIVATE(glk, priv); - while( g_scanner_peek_next_token(scanner) != G_TOKEN_EOF) { if( !style_accept_style_selector(scanner, glk) ) break; @@ -415,8 +413,7 @@ scan_css_file(GScanner *scanner, ChimaraGlk *glk) g_scanner_destroy(scanner); /* Update the pager prompt to the new style */ - GtkTextTag *pager_tag = GTK_TEXT_TAG( g_hash_table_lookup(priv->styles->text_buffer, "pager") ); - text_tag_to_attr_list(pager_tag, priv->pager_attr_list); + style_update(glk); } /* Internal function: parses a token */ -- 2.30.2