From af927c61bae73e00b95e9344c2646cc6a4e9b6b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Mon, 7 Feb 2011 23:29:26 +0000 Subject: [PATCH] * Make sure the image super type has Width, Height, Rating, Comment and Year. * Make sure that video and audio default to display rating as rating (untested). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40382 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/data/beos_mime/audio.super | 4 ++-- src/data/beos_mime/image.super | 44 ++++++++++++++++++++++++++++++++++ src/data/beos_mime/video.super | 4 ++-- 3 files changed, 48 insertions(+), 4 deletions(-) diff --git a/src/data/beos_mime/audio.super b/src/data/beos_mime/audio.super index 9ff4068401..2d5cb7a9eb 100644 --- a/src/data/beos_mime/audio.super +++ b/src/data/beos_mime/audio.super @@ -71,7 +71,7 @@ resource(6, "META:ATTR_INFO") message(233) { "attr:width" = 30, "attr:width" = 40, "attr:width" = 30, - "attr:width" = 15, + "attr:width" = 60, "attr:width" = 60, "attr:width" = 50, "attr:alignment" = 0, @@ -91,7 +91,7 @@ resource(6, "META:ATTR_INFO") message(233) { "attr:display_as" = "", "attr:display_as" = "", "attr:display_as" = "", - "attr:display_as" = "", + "attr:display_as" = "rating", "attr:display_as" = "duration", "attr:display_as" = "", "type" = "audio" diff --git a/src/data/beos_mime/image.super b/src/data/beos_mime/image.super index 72314e1b0d..518582d204 100644 --- a/src/data/beos_mime/image.super +++ b/src/data/beos_mime/image.super @@ -9,6 +9,50 @@ resource(3, "META:S:DESC") #'MSDC' "Image file"; resource(4, "META:PREF_APP") #'MSIG' "application/x-vnd.Haiku-ShowImage"; +resource(6, "META:ATTR_INFO") message(233) { + "attr:name" = "Media:Width", + "attr:name" = "Media:Height", + "attr:name" = "Media:Year", + "attr:name" = "Media:Comment", + "attr:name" = "Media:Rating", + "attr:public_name" = "Width", + "attr:public_name" = "Height", + "attr:public_name" = "Year", + "attr:public_name" = "Comment", + "attr:public_name" = "Rating", + "attr:type" = 'LONG', + "attr:type" = 'LONG', + "attr:type" = 'LONG', + "attr:type" = 'CSTR', + "attr:type" = 'LONG', + "attr:viewable" = true, + "attr:viewable" = true, + "attr:viewable" = true, + "attr:viewable" = true, + "attr:viewable" = true, + "attr:editable" = true, + "attr:editable" = true, + "attr:editable" = true, + "attr:editable" = true, + "attr:editable" = true, + "attr:width" = 60, + "attr:width" = 60, + "attr:width" = 60, + "attr:width" = 120, + "attr:width" = 60, + "attr:alignment" = 1, + "attr:alignment" = 1, + "attr:alignment" = 0, + "attr:alignment" = 0, + "attr:alignment" = 0, + "attr:display_as" = "", + "attr:display_as" = "", + "attr:display_as" = "", + "attr:display_as" = "", + "attr:display_as" = "rating", + "type" = "image" +}; + resource(5, "META:ICON") #'VICN' array { $"6E6369660502000603399E0F3D9C0ABF82B23B84A94B88504870C900A5B1FFBC" $"EAF1FFFFB3B8FF0501020106023E49240000000000003CAAAA4940004A3000FF" diff --git a/src/data/beos_mime/video.super b/src/data/beos_mime/video.super index 7de7bea2da..6626fc1a65 100644 --- a/src/data/beos_mime/video.super +++ b/src/data/beos_mime/video.super @@ -53,7 +53,7 @@ resource(6, "META:ATTR_INFO") message(233) { "attr:width" = 30, "attr:width" = 40, "attr:width" = 30, - "attr:width" = 15, + "attr:width" = 60, "attr:width" = 60, "attr:width" = 50, "attr:alignment" = 0, @@ -67,7 +67,7 @@ resource(6, "META:ATTR_INFO") message(233) { "attr:display_as" = "", "attr:display_as" = "", "attr:display_as" = "", - "attr:display_as" = "", + "attr:display_as" = "rating", "attr:display_as" = "duration", "attr:display_as" = "", "type" = "video"