Deleted unnecessary code
[rodin/chimara.git] / libchimara / style.c
index a879b2c8e2b8f635f198e323aa7724e809a77e44..76ef5d78a3d83b22f06977bf60badd861cdcb755 100644 (file)
@@ -288,8 +288,6 @@ style_init(ChimaraGlk *glk)
 
        /* Set the current style to a copy of the default style */
        copy_default_styles_to_current_styles(glk);
-
-       text_tag_to_attr_list(pager_tag, priv->pager_attr_list);
 }
 
 /* Reset style tables to the library's internal defaults */
@@ -307,6 +305,9 @@ copy_default_styles_to_current_styles(ChimaraGlk *glk)
        CHIMARA_GLK_USE_PRIVATE(glk, priv);
        g_hash_table_foreach(priv->default_styles->text_grid, style_table_copy, priv->current_styles->text_grid);
        g_hash_table_foreach(priv->default_styles->text_buffer, style_table_copy, priv->current_styles->text_buffer);
+
+       GtkTextTag *pager_tag = GTK_TEXT_TAG( g_hash_table_lookup(priv->default_styles->text_buffer, "pager") );
+       text_tag_to_attr_list(pager_tag, priv->pager_attr_list);
 }
 
 /* Create the CSS file scanner */