diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-21 06:33:11 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-05-21 07:05:55 +0800 |
commit | 9aa668aa6bf612673ad7e760b06fc62350be041e (patch) | |
tree | 0faa8c08a5452393069fc3fc716b1458ad9cad5a /mail/e-mail-paned-view.c | |
parent | 7333f12087eb0b0271ff272c6643909a7803510b (diff) | |
download | gsoc2013-evolution-9aa668aa6bf612673ad7e760b06fc62350be041e.tar.gz gsoc2013-evolution-9aa668aa6bf612673ad7e760b06fc62350be041e.tar.zst gsoc2013-evolution-9aa668aa6bf612673ad7e760b06fc62350be041e.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); } |