summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-06-10 07:20:24 -0400
committerMatthias Clasen <mclasen@redhat.com>2022-06-10 10:30:35 -0400
commit3c2db21ecbed82516e544a8cb71b318d0d5bab9a (patch)
tree575350f6ce419e8232a48b1c5b6b641acdc5581a
parent99eef5994c361eb9f09066aac4b6660f3c5518c1 (diff)
downloadpango-listmodel-properties.tar.gz
fc: Notify :n-items when neededlistmodel-properties
Notify :n-items when reloading the configuration, since that may change the number of families.
-rw-r--r--pango/pangofc-fontmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c
index 4c39ea1f..e21032f3 100644
--- a/pango/pangofc-fontmap.c
+++ b/pango/pangofc-fontmap.c
@@ -2292,6 +2292,8 @@ pango_fc_font_map_cache_clear (PangoFcFontMap *fcfontmap)
added = fcfontmap->priv->n_families;
g_list_model_items_changed (G_LIST_MODEL (fcfontmap), 0, removed, added);
+ if (removed != added)
+ g_object_notify (G_OBJECT (fcfontmap), "n-items");
pango_font_map_changed (PANGO_FONT_MAP (fcfontmap));
}