summaryrefslogtreecommitdiff
path: root/src/fr-init.c
diff options
context:
space:
mode:
authorToyeesh Sinha <[email protected]>2023-06-14 02:47:44 +0530
committerLuke from DC <[email protected]>2023-06-14 03:36:53 +0000
commit8e33e604d87e90bda3cc748bc1627c164d72a16c (patch)
treec991937febb1a1bfeeeae764fc8c1fa4fdac694c /src/fr-init.c
parent5602738e3eb15652a7e979a9c85fc6478401761c (diff)
downloadengrampa-8e33e604d87e90bda3cc748bc1627c164d72a16c.tar.bz2
engrampa-8e33e604d87e90bda3cc748bc1627c164d72a16c.tar.xz
Update to change the fallback and fix gzip issue
Diffstat (limited to 'src/fr-init.c')
-rw-r--r--src/fr-init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fr-init.c b/src/fr-init.c
index c018bfa..c7a876d 100644
--- a/src/fr-init.c
+++ b/src/fr-init.c
@@ -292,7 +292,7 @@ fr_registered_command_get_capabilities (FrRegisteredCommand *reg_com,
FrMimeTypeCap *cap;
cap = g_ptr_array_index (reg_com->caps, i);
- if (strcmp (mime_type, cap->mime_type) == 0)
+ if (is_mime_type (mime_type, cap->mime_type))
return cap->current_capabilities;
}
@@ -312,7 +312,7 @@ fr_registered_command_get_potential_capabilities (FrRegisteredCommand *reg_com,
FrMimeTypeCap *cap;
cap = g_ptr_array_index (reg_com->caps, i);
- if ((cap->mime_type != NULL) && (strcmp (mime_type, cap->mime_type) == 0))
+ if ((cap->mime_type != NULL) && (is_mime_type (mime_type, cap->mime_type)))
return cap->potential_capabilities;
}
@@ -508,7 +508,7 @@ get_mime_type_index (const char *mime_type)
int i;
for (i = 0; mime_type_desc[i].mime_type != NULL; i++)
- if (strcmp (mime_type_desc[i].mime_type, mime_type) == 0)
+ if (is_mime_type (mime_type_desc[i].mime_type, mime_type))
return i;
return -1;
}