Commit c86e37cc authored by Paolo Bacchilega's avatar Paolo Bacchilega

tags: use g_utf8_collate to compare tags

parent 69deab6e
......@@ -266,7 +266,7 @@ gboolean
gth_tags_file_has_tag (GthTagsFile *tags,
const char *tag)
{
return g_list_find_custom (tags->items, tag, (GCompareFunc) strcmp) != NULL;
return g_list_find_custom (tags->items, tag, (GCompareFunc) g_utf8_collate) != NULL;
}
......@@ -276,7 +276,7 @@ gth_tags_file_add (GthTagsFile *tags,
{
GList *link;
link = g_list_find_custom (tags->items, tag, (GCompareFunc) strcmp);
link = g_list_find_custom (tags->items, tag, (GCompareFunc) g_utf8_collate);
if (link == NULL) {
tags->items = g_list_append (tags->items, g_strdup (tag));
return TRUE;
......@@ -292,7 +292,7 @@ gth_tags_file_remove (GthTagsFile *tags,
{
GList *link;
link = g_list_find_custom (tags->items, tag, (GCompareFunc) strcmp);
link = g_list_find_custom (tags->items, tag, (GCompareFunc) g_utf8_collate);
if (link == NULL)
return FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment