1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 
3 /*
4  * Copyright (C) 2000, 2001 Eazel, Inc
5  * Copyright (C) 2002 Anders Carlsson
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License as
9  * published by the Free Software Foundation; either version 2 of the
10  * License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public
18  * License along with this program; if not, write to the
19  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20  * Boston, MA 02110-1301, USA.
21  *
22  * Authors: Maciej Stachowiak <mjs@eazel.com>
23  *          Anders Carlsson <andersca@gnu.org>
24  */
25 
26 /* fm-tree-view.h - tree view. */
27 
28 
29 #ifndef FM_TREE_VIEW_H
30 #define FM_TREE_VIEW_H
31 
32 #include <gtk/gtk.h>
33 
34 #define FM_TYPE_TREE_VIEW fm_tree_view_get_type()
35 #define FM_TREE_VIEW(obj) \
36   (G_TYPE_CHECK_INSTANCE_CAST ((obj), FM_TYPE_TREE_VIEW, FMTreeView))
37 #define FM_TREE_VIEW_CLASS(klass) \
38   (G_TYPE_CHECK_CLASS_CAST ((klass), FM_TYPE_TREE_VIEW, FMTreeViewClass))
39 #define FM_IS_TREE_VIEW(obj) \
40   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FM_TYPE_TREE_VIEW))
41 #define FM_IS_TREE_VIEW_CLASS(klass) \
42   (G_TYPE_CHECK_CLASS_TYPE ((klass), FM_TYPE_TREE_VIEW))
43 #define FM_TREE_VIEW_GET_CLASS(obj) \
44   (G_TYPE_INSTANCE_GET_CLASS ((obj), FM_TYPE_TREE_VIEW, FMTreeViewClass))
45 
46 #define TREE_SIDEBAR_ID "tree"
47 
48 typedef struct FMTreeViewDetails FMTreeViewDetails;
49 
50 typedef struct
51 {
52     GtkScrolledWindow parent;
53 
54     FMTreeViewDetails *details;
55 } FMTreeView;
56 
57 typedef struct
58 {
59     GtkScrolledWindowClass parent_class;
60 } FMTreeViewClass;
61 
62 GType fm_tree_view_get_type (void);
63 void fm_tree_view_register (void);
64 
65 #endif /* FM_TREE_VIEW_H */
66