aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser.h
blob: 86c1c6f1493426cab6580b2947ff2d10a5760e56 (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
65
66
67
68
69
70
71
72
73
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */


#ifndef _FOLDER_BROWSER_H_
#define _FOLDER_BROWSER_H_

#include "mail-types.h"
#include <gtk/gtktable.h>
#include "camel/camel-stream.h"
#include <bonobo/bonobo-property-bag.h>
#include "filter/filter-rule.h"
#include "filter/filter-context.h" /*eek*/
#include "message-list.h"
#include "mail-display.h"
#include "shell/Evolution.h"


#define FOLDER_BROWSER_TYPE        (folder_browser_get_type ())
#define FOLDER_BROWSER(o)          (GTK_CHECK_CAST ((o), FOLDER_BROWSER_TYPE, FolderBrowser))
#define FOLDER_BROWSER_CLASS(k)    (GTK_CHECK_CLASS_CAST((k), FOLDER_BROWSER_TYPE, FolderBrowserClass))
#define IS_FOLDER_BROWSER(o)       (GTK_CHECK_TYPE ((o), FOLDER_BROWSER_TYPE))
#define IS_FOLDER_BROWSER_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), FOLDER_BROWSER_TYPE))

struct  _FolderBrowser {
    GtkTable parent;
    
    BonoboPropertyBag *properties;
    
    Evolution_Shell shell;
    
    /* This is a kludge for the toolbar problem. */
    int serial;
    
    /*
     * The current URI being displayed by the FolderBrowser
     */
    char        *uri;
    CamelFolder *folder;
    
    MessageList *message_list;
    GtkWidget   *message_list_w;
    MailDisplay *mail_display;
    GtkWidget   *vpaned;
    GtkWidget   *search_menu;
    GtkWidget   *search_entry;
    
    gboolean     preview_shown;

    /* Stuff to allow on-demand filtering */
    GSList        *filter_menu_paths;
    FilterContext *filter_context;
};


typedef struct {
    GtkTableClass parent_class;
} FolderBrowserClass;

struct fb_ondemand_closure {
    FilterRule *rule;
    FolderBrowser *fb;
    gchar *path;
};

GtkType        folder_browser_get_type (void);
GtkWidget     *folder_browser_new      (void);
gboolean       folder_browser_set_uri (FolderBrowser *folder_browser, 
                       const char *uri);
void           folder_browser_set_message_preview (FolderBrowser *folder_browser,
                           gboolean show_message_preview);
void           folder_browser_clear_search (FolderBrowser *fb);

#endif /* _FOLDER_BROWSER_H_ */
* Conversion to a single libtool environment.ade2006-02-232-1/+141 * Remove the FreeBSD KEYWORD from all rc.d scripts where it appears.dougb2006-02-211-2/+2 * Chase shlib bump of libexpat.kuriyama2006-01-311-2/+2 * - add -v to kldload to prevent loading accf_http module if it's staticallyclement2006-01-231-2/+2 * Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtryedwin2006-01-221-5/+5 * - Finish cleanups and fix build with threads enables.clement2006-01-171-2/+0 * Cleanups and fixesclement2006-01-162-28/+17 * - Moving Makefile.modules before b.p.pre.mk leads to weird results.clement2006-01-151-2/+2 * - ohoh fix apache22.shclement2006-01-151-1/+2 * - SECURITY: CVE-2005-3357 (cve.mitre.org)clement2006-01-153-13/+103 * - Fix some suexec CONFIGURE_ARGS for 1.3.xclement2006-01-141-24/+3 * - remove useless powerlogo.gifclement2005-12-263-10/+0 * - Fix plist and improve dbd /mem_cache logicclement2005-12-172-14/+13 * - Grrrrr. mod_mem_cache needs threads-capable APRclement2005-12-161-1/+4 * - Fix envvars.d [1]clement2005-12-148-30/+92 * - Fix typo (it's actually in apache SVN repo)clement2005-12-131-1/+1 * SECURITY: CVE-2005-3352 (cve.mitre.org)clement2005-12-132-1/+36 * - Don't forget to add USE_BUNDLED_APR to CONFIGURE_ENVclement2005-12-101-0/+1 * - Fix plist (forgot when I add mod_filter) [1]clement2005-12-103-6/+26 * - Add forgotten mod_filterclement2005-12-081-1/+1 * - Various package fixesclement2005-12-042-3/+7 * - clean plistclement2005-12-041-262/+258 * - Fix duplicated modulesclement2005-12-041-1/+1 * - Update documentation.clement2005-12-041-55/+1 * - Add apache 2.2.0clement2005-12-048-571/+496 * - Update to 2.1.9pav2005-11-303-5/+8 * Mass-conversion to the USE_AUTOTOOLS New World Order. The code presentade2005-11-151-2/+1 * - Backport WANT_APACHE= common21 from development version of bsd.apache.mkclement2005-11-021-1/+1 * - Update to 2.1.8clement2005-10-3113-235/+192 * - make sure SSL dependency doesn't exists if WITHOUT_MODULES_SSL is definedclement2005-08-01