X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Fstyle.c;h=76ef5d78a3d83b22f06977bf60badd861cdcb755;hb=77d5b31de1338fd87f67ab5896287519c8efe8ff;hp=a879b2c8e2b8f635f198e323aa7724e809a77e44;hpb=7ef4ef1fecab7ae0f724e59f7de1315a96822152;p=rodin%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 */