Avoid code duplication
authorP. F. Chimento <philip.chimento@gmail.com>
Sat, 18 Jun 2011 13:03:43 +0000 (15:03 +0200)
committerP. F. Chimento <philip.chimento@gmail.com>
Sat, 18 Jun 2011 13:03:43 +0000 (15:03 +0200)
libchimara/style.c

index 9b82a6637d260241f017d5b2c7289b55364d3aff..207a7f7cb9342ca7005e65f8faf15bc4636d45dd 100644 (file)
@@ -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 */