summaryrefslogtreecommitdiff
path: root/tumbler/tumbler-enum-types.c
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis@xfce.org>2009-10-21 00:27:33 +0200
committerJannis Pohlmann <jannis@xfce.org>2009-10-21 00:32:10 +0200
commit610f0964b759a26944bca705dad5061f1fe0ba04 (patch)
tree3ed1f6e18c6222e064a21cfc505fa949ebdd77c4 /tumbler/tumbler-enum-types.c
parentbe9202b523a1854fa4824cd348ebae4462d7cfa5 (diff)
downloadtumbler-610f0964b759a26944bca705dad5061f1fe0ba04.tar.gz
Add TumblerColorspace enum, rename save_pixbuf() to save_image_data().
Also fixed the coding style here and there.
Diffstat (limited to 'tumbler/tumbler-enum-types.c')
-rw-r--r--tumbler/tumbler-enum-types.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/tumbler/tumbler-enum-types.c b/tumbler/tumbler-enum-types.c
index 19f4935..baba55f 100644
--- a/tumbler/tumbler-enum-types.c
+++ b/tumbler/tumbler-enum-types.c
@@ -80,3 +80,24 @@ tumbler_thumbnail_format_get_type (void)
return type;
}
+
+
+
+GType
+tumbler_colorspace_get_type (void)
+{
+ GType type = G_TYPE_INVALID;
+
+ if (G_UNLIKELY (type == G_TYPE_INVALID))
+ {
+ static const GEnumValue values[] =
+ {
+ { TUMBLER_COLORSPACE_RGB, "TUMBLER_COLORSPACE_RGB", N_ ("RGB Colorspace"), },
+ { 0, NULL, NULL, },
+ };
+
+ type = g_enum_register_static ("TumblerColorspace", values);
+ }
+
+ return type;
+}