aboutsummaryrefslogtreecommitdiff
path: root/src/prefs_filter_edit.h
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-12-19 06:41:50 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-12-19 06:41:50 +0000
commitd55459c79d6ddfa0b006c5696d408a7e388cf8c8 (patch)
tree98e8ea35bfce5bc235adbc544de8aba1f754b8ac /src/prefs_filter_edit.h
parent1ca5b9aa126b860d9198f85e44104f857513bef5 (diff)
implemented query search and virtual folder (merged from newsearch branch).
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@836 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/prefs_filter_edit.h')
-rw-r--r--src/prefs_filter_edit.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/prefs_filter_edit.h b/src/prefs_filter_edit.h
index fd720fa2..dbc967f3 100644
--- a/src/prefs_filter_edit.h
+++ b/src/prefs_filter_edit.h
@@ -24,6 +24,10 @@
#include "filter.h"
+typedef struct _FilterCondEdit FilterCondEdit;
+typedef struct _CondHBox CondHBox;
+typedef struct _ActionHBox ActionHBox;
+
typedef enum
{
PF_COND_HEADER,
@@ -81,15 +85,18 @@ typedef enum
PF_ACTION_NONE
} ActionMenuType;
-typedef struct _FilterCondEdit {
+struct _FilterCondEdit {
GtkWidget *cond_vbox;
GSList *cond_hbox_list;
GSList *hdr_list;
GSList *rule_hdr_list;
-} FilterCondEdit;
-typedef struct _CondHBox {
+ /* callback */
+ void (*add_hbox) (CondHBox *hbox);
+};
+
+struct _CondHBox {
GtkWidget *hbox;
GtkWidget *cond_type_optmenu;
@@ -107,9 +114,9 @@ typedef struct _CondHBox {
gchar *cur_header_name;
FilterCondEdit *cond_edit;
-} CondHBox;
+};
-typedef struct _ActionHBox {
+struct _ActionHBox {
GtkWidget *hbox;
GtkWidget *action_type_optmenu;
@@ -125,7 +132,7 @@ typedef struct _ActionHBox {
GtkWidget *del_btn;
GtkWidget *add_btn;
-} ActionHBox;
+};
FilterRule *prefs_filter_edit_open (FilterRule *rule,