aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table.c
blob: 795c737b36969e07f3ee8ee4ebc612e487eddfa4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * E-table-view.c: A graphical view of a Table.
 *
 * Author:
 *   Miguel de Icaza (miguel@gnu.org)
 *
 * Copyright 1999, Helix Code, Inc
 */
#include <config.h>
#include <libgnomeui/gnome-canvas.h>
#include "e-table.h"

#define PARENT_OBJECT_TYPE gnome_canvas_get_type ()

GtkType
e_table_get_type (void)
{
    static GtkType type = 0;

    if (!type){
        GtkTypeInfo info = {
            "ETable",
            sizeof (ETable),
            sizeof (ETableClass),
            (GtkClassInitFunc) e_table_class_init,
            (GtkObjectInitFunc) NULL,
            NULL, /* reserved 1 */
            NULL, /* reserved 2 */
            (GtkClassInitFunc) NULL
        };

        type = gtk_type_unique (PARENT_OBJECT_TYPE, &info);
    }

    return type;
}