summaryrefslogtreecommitdiff
path: root/tumbler/tumbler-enum-types.c
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis@xfce.org>2009-05-22 21:25:29 +0200
committerJannis Pohlmann <jannis@xfce.org>2009-05-22 21:25:29 +0200
commitaa186ccb54907cada638850637d93b41e119e388 (patch)
tree4beaba4244cf02cf71cc637113f49abc120fa2b0 /tumbler/tumbler-enum-types.c
parent1be38c8bbcc386fba086b65f63c164dc33214ab4 (diff)
downloadtumbler-aa186ccb54907cada638850637d93b41e119e388.tar.gz
Add TumblerThumbnailInfo and TumblerThumbnailFormat enum.
TumblerThumbnailInfo is an interface for querying thumbnail information for a certain TumblerThumbnailFormat (PNG, JPEG etc.). By default only PNG is supported, via TumblerPNGThumbnailInfo, as required for the Thumbnail Managing Standard. TumblerThumbnailInfo acts as a factory which creates a thumbnail info for an URI (and optionall, a format). The returned thumbnail info provides information about the existence of a certain thumbnail flavor for the URI and other bits defined in the Thumbnail Managing Standard. See http://jens.triq.net/thumbnail-spec/creation.html fore more info. Right now, there's nothing implemented. These are just skeletons.
Diffstat (limited to 'tumbler/tumbler-enum-types.c')
-rw-r--r--tumbler/tumbler-enum-types.c24
1 files changed, 23 insertions, 1 deletions
diff --git a/tumbler/tumbler-enum-types.c b/tumbler/tumbler-enum-types.c
index b950ff5..19f4935 100644
--- a/tumbler/tumbler-enum-types.c
+++ b/tumbler/tumbler-enum-types.c
@@ -46,7 +46,7 @@ tumbler_thumbnail_flavor_get_type (void)
{
static const GEnumValue values[] =
{
- { TUMBLER_THUMBNAIL_FLAVOR_INVALID, "TUMBLER_THUMBNAIL_FLAVOR_INVALID", N_ ("Invalid"), },
+ { TUMBLER_THUMBNAIL_FLAVOR_INVALID, "TUMBLER_THUMBNAIL_FLAVOR_INVALID", N_ ("Invalid format"), },
{ TUMBLER_THUMBNAIL_FLAVOR_NORMAL, "TUMBLER_THUMBNAIL_FLAVOR_NORMAL", N_ ("Normal"), },
{ TUMBLER_THUMBNAIL_FLAVOR_LARGE, "TUMBLER_THUMBNAIL_FLAVOR_LARGE", N_ ("Large"), },
{ TUMBLER_THUMBNAIL_FLAVOR_CROPPED, "TUMBLER_THUMBNAIL_FLAVOR_CROPPED", N_ ("Cropped"), },
@@ -58,3 +58,25 @@ tumbler_thumbnail_flavor_get_type (void)
return type;
}
+
+
+
+GType
+tumbler_thumbnail_format_get_type (void)
+{
+ GType type = G_TYPE_INVALID;
+
+ if (G_UNLIKELY (type == G_TYPE_INVALID))
+ {
+ static const GEnumValue values[] =
+ {
+ { TUMBLER_THUMBNAIL_FORMAT_INVALID, "TUMBLER_THUMBNAIL_FORMAT_INVALID", N_ ("Invalid format"), },
+ { TUMBLER_THUMBNAIL_FORMAT_PNG, "TUMBLER_THUMBNAIL_FORMAT_PNG", N_ ("PNG"), },
+ { 0, NULL, NULL, },
+ };
+
+ type = g_enum_register_static ("TumblerThumbnailFormat", values);
+ }
+
+ return type;
+}