1 /* vi:set et ai sw=2 sts=2 ts=2: */
2 /*-
3  * Copyright (c) 2009 Jannis Pohlmann <jannis@xfce.org>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General
16  * Public License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 #ifdef HAVE_CONFIG_H
22 #include <config.h>
23 #endif
24 
25 #include <glib/gi18n.h>
26 #include <glib-object.h>
27 
28 #include <tumbler/tumbler-enum-types.h>
29 
30 
31 
32 /**
33  * SECTION:tumbler-enum-types
34  * @title: Various Enumeration Types
35  * @include: tumbler/tumbler.h
36  */
37 
38 
39 
40 GType
tumbler_thumbnail_format_get_type(void)41 tumbler_thumbnail_format_get_type (void)
42 {
43   GType type = G_TYPE_INVALID;
44 
45   if (G_UNLIKELY (type == G_TYPE_INVALID))
46     {
47       static const GEnumValue values[] =
48       {
49         { TUMBLER_THUMBNAIL_FORMAT_INVALID, "TUMBLER_THUMBNAIL_FORMAT_INVALID",  N_ ("Invalid format"), },
50         { TUMBLER_THUMBNAIL_FORMAT_PNG,     "TUMBLER_THUMBNAIL_FORMAT_PNG",      N_ ("PNG"), },
51         { 0,                                NULL,                                NULL,       },
52       };
53 
54       type = g_enum_register_static ("TumblerThumbnailFormat", values);
55     }
56 
57   return type;
58 }
59 
60 
61 
62 GType
tumbler_colorspace_get_type(void)63 tumbler_colorspace_get_type (void)
64 {
65   GType type = G_TYPE_INVALID;
66 
67   if (G_UNLIKELY (type == G_TYPE_INVALID))
68     {
69       static const GEnumValue values[] =
70       {
71         { TUMBLER_COLORSPACE_RGB, "TUMBLER_COLORSPACE_RGB", N_ ("RGB Colorspace"), },
72         { 0,                      NULL,                     NULL,                  },
73       };
74 
75       type = g_enum_register_static ("TumblerColorspace", values);
76     }
77 
78   return type;
79 }
80