X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Fstyle.c;h=76ef5d78a3d83b22f06977bf60badd861cdcb755;hb=c29184c50794e239b15721b5c3e172093e950327;hp=a879b2c8e2b8f635f198e323aa7724e809a77e44;hpb=735e7456a9eced77b641b7bd79ce25dfe9965dee;p=projects%2Fchimara%2Fchimara.git diff --git a/libchimara/style.c b/libchimara/style.c index a879b2c..76ef5d7 100644 --- a/libchimara/style.c +++ b/libchimara/style.c @@ -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 */