aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-06-08 08:32:51 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-06-08 08:32:51 +0800
commitb3c57ed8e5f1bcbda9ec0fa37a252aeb5313f279 (patch)
tree4b2bf70af56c669cd65695c10ab7b71df5798173 /mail
parent77645577f5594d68e1a6d67d3a2edcf860a5f591 (diff)
downloadgsoc2013-evolution-b3c57ed8e5f1bcbda9ec0fa37a252aeb5313f279.tar.gz
gsoc2013-evolution-b3c57ed8e5f1bcbda9ec0fa37a252aeb5313f279.tar.zst
gsoc2013-evolution-b3c57ed8e5f1bcbda9ec0fa37a252aeb5313f279.zip
Bug 677624 - Disable Properties when Search Folders is selected
Diffstat (limited to 'mail')
-rw-r--r--mail/e-mail-sidebar.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/e-mail-sidebar.c b/mail/e-mail-sidebar.c
index d4aeeb7026..594dd27830 100644
--- a/mail/e-mail-sidebar.c
+++ b/mail/e-mail-sidebar.c
@@ -420,6 +420,7 @@ mail_sidebar_check_state (EMailSidebar *sidebar)
gchar *full_name;
const gchar *uid;
gboolean store_is_local;
+ gboolean store_is_vfolder;
gboolean allows_children = TRUE;
gboolean can_delete = TRUE;
gboolean is_junk = FALSE;
@@ -445,6 +446,11 @@ mail_sidebar_check_state (EMailSidebar *sidebar)
uid = camel_service_get_uid (CAMEL_SERVICE (store));
store_is_local = (g_strcmp0 (uid, E_MAIL_SESSION_LOCAL_UID) == 0);
+ store_is_vfolder = (g_strcmp0 (uid, E_MAIL_SESSION_VFOLDER_UID) == 0);
+
+ /* Bit of a hack to indicate "Search Folders" is selected. */
+ if (is_store && store_is_vfolder)
+ is_virtual = TRUE;
if (!is_store && full_name != NULL) {
guint32 folder_type;