summaryrefslogtreecommitdiff
path: root/pango/pangowin32-fontmap.c
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2008-05-27 09:17:24 +0000
committerTor Lillqvist <tml@src.gnome.org>2008-05-27 09:17:24 +0000
commita8bbb8fa9a2cc1b9a2ce1467c053c2d1ff2534da (patch)
tree2b4c99d84ca19772581dd6f743730daaa02e0f89 /pango/pangowin32-fontmap.c
parent7325c8de5a780d97e25892f9b5d3ad8eb2a1cda3 (diff)
downloadpango-a8bbb8fa9a2cc1b9a2ce1467c053c2d1ff2534da.tar.gz
After the change to how the standard pseudo font families are set up
2008-05-27 Tor Lillqvist <tml@novell.com> * pango/pangowin32-fontmap.c (pango_win32_family_list_faces): After the change to how the standard pseudo font families are set up below, we don't need to prune out duplicate face names any longer. svn path=/trunk/; revision=2641
Diffstat (limited to 'pango/pangowin32-fontmap.c')
-rw-r--r--pango/pangowin32-fontmap.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/pango/pangowin32-fontmap.c b/pango/pangowin32-fontmap.c
index 21c7583e..3686103d 100644
--- a/pango/pangowin32-fontmap.c
+++ b/pango/pangowin32-fontmap.c
@@ -479,17 +479,7 @@ pango_win32_family_list_faces (PangoFontFamily *family,
n = 0;
while (p)
{
- GSList *q;
- q = win32family->faces;
- while (q != p)
- {
- if (strcmp (pango_win32_face_get_face_name ((PangoFontFace *) q->data),
- pango_win32_face_get_face_name ((PangoFontFace *) p->data)) == 0)
- break;
- q = q->next;
- }
- if (q == p)
- n++;
+ n++;
p = p->next;
}
@@ -503,15 +493,7 @@ pango_win32_family_list_faces (PangoFontFamily *family,
i = 0;
while (p)
{
- int j;
- for (j = 0; j < i; j++)
- {
- if (strcmp (pango_win32_face_get_face_name ((*faces)[j]),
- pango_win32_face_get_face_name ((PangoFontFace *) p->data)) == 0)
- break;
- }
- if (j == i)
- (*faces)[i++] = p->data;
+ (*faces)[i++] = p->data;
p = p->next;
}
}