Change mimetype from text/x-feed-entry to application/x-feed-entry
This commit is contained in:
parent
cf5a6ce843
commit
2147c43103
|
@ -152,9 +152,10 @@ App::RefsReceived(BMessage* message)
|
||||||
info.SetTo(&file);
|
info.SetTo(&file);
|
||||||
info.GetType(type);
|
info.GetType(type);
|
||||||
|
|
||||||
if (BString(type) == BString("text/x-feed-entry"))
|
if (BString(type) == "application/x-feed-entry"
|
||||||
|
|| BString(type) == "text/x-feed-entry")
|
||||||
_OpenEntryFile(&msg);
|
_OpenEntryFile(&msg);
|
||||||
else if (BString(type) == BString("application/x-feed-source"))
|
else if (BString(type) == "application/x-feed-source")
|
||||||
_OpenSourceFile(&msg);
|
_OpenSourceFile(&msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ feedMimeType()
|
||||||
mime.GetAttrInfo(&info);
|
mime.GetAttrInfo(&info);
|
||||||
|
|
||||||
mime.SetShortDescription("Feed");
|
mime.SetShortDescription("Feed");
|
||||||
mime.SetLongDescription("Atom/RSS Feed");
|
mime.SetLongDescription("Atom/RSS feed");
|
||||||
|
|
||||||
addAttribute(info, "Feed:name", "Name");
|
addAttribute(info, "Feed:name", "Name");
|
||||||
addAttribute(info, "Feed:description", "Description");
|
addAttribute(info, "Feed:description", "Description");
|
||||||
|
@ -55,7 +55,7 @@ bool
|
||||||
feedEntryMimeType()
|
feedEntryMimeType()
|
||||||
{
|
{
|
||||||
BMessage info;
|
BMessage info;
|
||||||
BMimeType mime("text/x-feed-entry");
|
BMimeType mime("application/x-feed-entry");
|
||||||
if (mime.IsInstalled())
|
if (mime.IsInstalled())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
@ -68,8 +68,8 @@ feedEntryMimeType()
|
||||||
|
|
||||||
mime.GetAttrInfo(&info);
|
mime.GetAttrInfo(&info);
|
||||||
|
|
||||||
mime.SetShortDescription("Feed Entry");
|
mime.SetShortDescription("Feed entry");
|
||||||
mime.SetLongDescription("Atom/RSS Feed Entry");
|
mime.SetLongDescription("Atom/RSS feed entry");
|
||||||
|
|
||||||
addAttribute(info, "Feed:name", "Name");
|
addAttribute(info, "Feed:name", "Name");
|
||||||
addAttribute(info, "Feed:description", "Description");
|
addAttribute(info, "Feed:description", "Description");
|
||||||
|
|
Ŝarĝante…
Reference in New Issue