From: P. F. Chimento Date: Sat, 18 Jun 2011 13:03:43 +0000 (+0200) Subject: Avoid code duplication X-Git-Tag: v0.9~73^2~8^2 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=149dc49d4f0a49889a55705095cef437b875a92a;p=projects%2Fchimara%2Fchimara.git Avoid code duplication --- 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 */