diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-21 06:33:11 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:42:17 +0800 |
commit | b1e34279d9a7f2e453fa3bbfd93856866aa4f5e4 (patch) | |
tree | 52ff8c870dd0025218d5b8803c6c4ef0560900d3 /mail/e-mail-paned-view.c | |
parent | 6fb8b27d3d847ab42aa5247a0a924912e1d4a2dd (diff) | |
download | gsoc2013-evolution-b1e34279d9a7f2e453fa3bbfd93856866aa4f5e4.tar.gz gsoc2013-evolution-b1e34279d9a7f2e453fa3bbfd93856866aa4f5e4.tar.zst gsoc2013-evolution-b1e34279d9a7f2e453fa3bbfd93856866aa4f5e4.zip |
Bug 650587 - Hide Search Folder actions when Search Folders are disabled
Add an action group for Search Folders to EMailReader. The action
group's visibility is bound to the "mail-enable-search-folders" setting,
so that menu items related to Search Folders are hidden when Search
Folders are disabled in GConf.
Affected menu items are:
Edit -> Search Folders
Message -> Create Rule -> Search Folder from Subject...
Message -> Create Rule -> Search Folder from Sender...
Message -> Create Rule -> Search Folder from Recipients...
Message -> Create Rule -> Search Folder from Mailing List...
Search -> Create Search Folder From Search...
Diffstat (limited to 'mail/e-mail-paned-view.c')
-rw-r--r-- | mail/e-mail-paned-view.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mail/e-mail-paned-view.c b/mail/e-mail-paned-view.c index d95fca16c2..6d381009d6 100644 --- a/mail/e-mail-paned-view.c +++ b/mail/e-mail-paned-view.c @@ -382,6 +382,9 @@ mail_paned_view_get_action_group (EMailReader *reader, case E_MAIL_READER_ACTION_GROUP_STANDARD: group_name = "mail"; break; + case E_MAIL_READER_ACTION_GROUP_SEARCH_FOLDERS: + group_name = "search-folders"; + break; default: g_return_val_if_reached (NULL); } |