[pango/listmodel-properties: 7/7] fc: Notify :n-items when needed
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/listmodel-properties: 7/7] fc: Notify :n-items when needed
- Date: Fri, 10 Jun 2022 14:31:51 +0000 (UTC)
commit 3c2db21ecbed82516e544a8cb71b318d0d5bab9a
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jun 10 07:20:24 2022 -0400
fc: Notify :n-items when needed
Notify :n-items when reloading the configuration,
since that may change the number of families.
pango/pangofc-fontmap.c | 2 ++
1 file changed, 2 insertions(+)
---
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));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]