From 3b2b5bf799e15079daa30fa4caaa317d98a0f178 Mon Sep 17 00:00:00 2001 From: hiro Date: Fri, 11 May 2007 05:37:57 +0000 Subject: the quick search condition now persists for the whole session. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1688 ee746299-78ed-0310-b773-934348b2243d --- libsylph/folder.c | 1 + libsylph/folder.h | 1 + libsylph/prefs_common.c | 3 +++ libsylph/prefs_common.h | 2 ++ 4 files changed, 7 insertions(+) (limited to 'libsylph') diff --git a/libsylph/folder.c b/libsylph/folder.c index c63d5ba7..0837c17c 100644 --- a/libsylph/folder.c +++ b/libsylph/folder.c @@ -191,6 +191,7 @@ FolderItem *folder_item_new(const gchar *name, const gchar *path) item->auto_replyto = NULL; item->mark_queue = NULL; item->last_selected = 0; + item->qsearch_cond_type = 0; item->data = NULL; return item; diff --git a/libsylph/folder.h b/libsylph/folder.h index 1c8cd09d..96107261 100644 --- a/libsylph/folder.h +++ b/libsylph/folder.h @@ -294,6 +294,7 @@ struct _FolderItem GSList *mark_queue; guint last_selected; + gint qsearch_cond_type; gpointer data; }; diff --git a/libsylph/prefs_common.c b/libsylph/prefs_common.c index 390f80f2..b00e7620 100644 --- a/libsylph/prefs_common.c +++ b/libsylph/prefs_common.c @@ -126,6 +126,9 @@ static PrefParam param[] = { {"enable_rules_hint", "TRUE", &prefs_common.enable_rules_hint, P_BOOL}, {"bold_unread", "TRUE", &prefs_common.bold_unread, P_BOOL}, + {"persist_qsearch_filter", "TRUE", &prefs_common.persist_qsearch_filter, + P_BOOL}, + {"toolbar_style", "4", &prefs_common.toolbar_style, P_ENUM}, {"show_searchbar", "TRUE", &prefs_common.show_searchbar, P_BOOL}, {"show_statusbar", "TRUE", &prefs_common.show_statusbar, P_BOOL}, diff --git a/libsylph/prefs_common.h b/libsylph/prefs_common.h index 0b708be3..52812454 100644 --- a/libsylph/prefs_common.h +++ b/libsylph/prefs_common.h @@ -114,6 +114,8 @@ struct _PrefsCommon gboolean enable_rules_hint; gboolean bold_unread; + gboolean persist_qsearch_filter; + ToolbarStyle toolbar_style; gboolean show_searchbar; gboolean show_statusbar; -- cgit v1.2.3