1 /* $Id: gtkdatabox_scale.c 4 2008-06-22 09:19:11Z rbock $ */
2 /* GtkDatabox - An extension to the gtk+ library
3 * Copyright (C) 1998 - 2008 Dr. Roland Bock
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public License
7 * as published by the Free Software Foundation; either version 2.1
8 * of the License, or (at your option) any later version.
9 *
10 * This program 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 Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20 #include <gtkdatabox_scale.h>
21
22 GType
gtk_databox_scale_type_get_type(void)23 gtk_databox_scale_type_get_type (void)
24 {
25 static GType type = 0;
26
27 if (type == 0)
28 {
29 static const GEnumValue values[] = {
30 { GTK_DATABOX_SCALE_LINEAR, "GTK_DATABOX_SCALE_LINEAR", "linear" },
31 { GTK_DATABOX_SCALE_LOG, "GTK_DATABOX_SCALE_LOG", "log" },
32 { GTK_DATABOX_SCALE_LOG2, "GTK_DATABOX_SCALE_LOG2", "log2" },
33 { 0, NULL, NULL }};
34 type = g_enum_register_static (g_intern_static_string ("GtkDataboxScaleType"), values);
35 }
36
37 return type;
38 }
39
40
41