summaryrefslogtreecommitdiff
path: root/gdata/services/documents/gdata-documents-entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdata/services/documents/gdata-documents-entry.c')
-rw-r--r--gdata/services/documents/gdata-documents-entry.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/gdata/services/documents/gdata-documents-entry.c b/gdata/services/documents/gdata-documents-entry.c
index e54e5df1..32f51efc 100644
--- a/gdata/services/documents/gdata-documents-entry.c
+++ b/gdata/services/documents/gdata-documents-entry.c
@@ -587,14 +587,8 @@ parse_json (GDataParsable *parsable, JsonReader *reader, gpointer user_data, GEr
g_free (alternate_uri);
return success;
} else if (gdata_parser_string_from_json_member (reader, "mimeType", P_DEFAULT, &mime_type, &success, error) == TRUE) {
- if (success && mime_type != NULL && mime_type[0] != '\0') {
- GDataEntryClass *klass = GDATA_ENTRY_GET_CLASS (parsable);
-
- category = gdata_category_new (klass->kind_term, "http://schemas.google.com/g/2005#kind", mime_type);
- gdata_entry_add_category (GDATA_ENTRY (parsable), category);
- g_object_unref (category);
- }
-
+ if (success)
+ gdata_documents_utils_add_content_type (GDATA_DOCUMENTS_ENTRY (parsable), mime_type);
g_free (mime_type);
return success;
} else if (gdata_parser_int64_time_from_json_member (reader, "lastViewedByMeDate", P_DEFAULT, &(priv->last_viewed), &success, error) == TRUE ||