From: rodin Date: Wed, 5 May 2010 12:22:46 +0000 (+0000) Subject: When copying default styles to current styles, also take the pager layout into account. X-Git-Tag: v0.9~198 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=9e2b61ae1278c60a7c1e980b04f2a7bbdbdb1875;hp=26c1733935c1ec2f53b0c45d25db251221ad660d;p=projects%2Fchimara%2Fchimara.git When copying default styles to current styles, also take the pager layout into account. --- diff --git a/libchimara/style.c b/libchimara/style.c index a879b2c..38e6901 100644 --- a/libchimara/style.c +++ b/libchimara/style.c @@ -307,6 +307,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 */