summaryrefslogtreecommitdiff
path: root/saedit/treefolderview/treefolderview.h
blob: 78aeefc98b7b4446e8bec108665925d61bde7ce5 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef __TREE_FOLDER_VIEW_H__
#define __TREE_FOLDER_VIEW_H__

#include <gdk/gdk.h>
#include <gtk/gtk.h>

G_BEGIN_DECLS

#define TYPE_TREE_FOLDER_VIEW (tree_folder_view_get_type ())
#define TREE_FOLDER_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TREE_FOLDER_VIEW, TreeFolderView))
#define TREE_FOLDER_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TREE_FOLDER_VIEW, TreeFolderViewClass))
#define IS_TREE_FOLDER_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TREE_FOLDER_VIEW))
#define IS_TREE_FOLDER_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TREE_FOLDER_VIEW))
#define TREE_FOLDER_VIEW_GET_CLASS(obj) ((obj), TYPE_TREE_FOLDER_VIEW, TreeFolderViewClass)

typedef struct _TreeFolderView TreeFolderView;
typedef struct _TreeFolderViewPrivate TreeFolderViewPrivate;
typedef struct _TreeFolderViewClass TreeFolderViewClass;

struct _TreeFolderView {
	GtkTreeView tview;

	TreeFolderViewPrivate *priv;
};

struct _TreeFolderViewClass {
	GtkTreeViewClass tview_class;

	void (* file_activated) (
		TreeFolderView *tfview,
		gchar *filename
	);
};

GType
tree_folder_view_get_type (void);

GtkWidget*
tree_folder_view_new (void);

void
tree_folder_view_set_filename  (
	TreeFolderView *tfview,
	const gchar    *filename
);

GtkFileFilter*
tree_folder_view_get_filter  (TreeFolderView *tfview);

void
tree_folder_view_set_filter  (
	TreeFolderView *tfview,
	GtkFileFilter *filter
);

gchar *
tree_folder_view_get_filename (TreeFolderView *tfview);

gchar *
tree_folder_view_get_display_name (TreeFolderView *tfview);

G_END_DECLS

#endif