aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view.h
blob: 4011cfc6ac7e6a5372ef8f612087628d3f49f323 (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
#ifndef E_SHELL_VIEW_H
#define E_SHELL_VIEW_H

#include <bonobo/gnome-object.h>
#include <bonobo/gnome-ui-handler.h>
#include "e-shell.h"

#define E_SHELL_VIEW_TYPE        (e_shell_view_get_type ())
#define E_SHELL_VIEW(o)          (GTK_CHECK_CAST ((o), E_SHELL_VIEW_TYPE, EShellView))
#define E_SHELL_VIEW_CLASS(k)    (GTK_CHECK_CLASS_CAST((k), E_SHELL_VIEW_TYPE, EShellViewClass))
#define E_IS_SHELL_VIEW(o)       (GTK_CHECK_TYPE ((o), E_SHELL_VIEW_TYPE))
#define E_IS_SHELL_VIEW_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_SHELL_VIEW_TYPE))

struct _EShellView {
    GnomeApp parent;

    /* Pointer to our model */
    EShell  *eshell;

    /* Our user interface handler */
    GnomeUIHandler *uih;

    /*
     *
     */
    char shortcut_displayed;
    GtkWidget *shortcut_hpaned;
    GtkWidget *shortcut_bar;
    GtkWidget *contents;
};

typedef struct {
    GnomeAppClass parent_class;
} EShellViewClass;

GtkWidget *e_shell_view_new          (EShell *eshell, gboolean show_shortcut_bar);
GtkType    e_shell_view_get_type     (void);

void       e_shell_view_new_folder   (EShellView *esv);
void       e_shell_view_new_shortcut (EShellView *esv);

void       e_shell_view_set_view     (EShellView *eshell_view,
                      EFolder *efolder);
void e_shell_view_display_shortcut_bar (EShellView *eshell_view, gboolean display);

#endif /* E_SHELL_VIEW_H */