aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-07-12 23:26:47 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-07-12 23:26:47 +0800
commit78bf9d9d708dd255cc0966d64112aba56a4b2544 (patch)
tree99005ed153514c35d47a86482cad28b024c7ee50 /plugins
parenteb29179da623f9cf4abd663577395a085452ca18 (diff)
downloadgsoc2013-evolution-78bf9d9d708dd255cc0966d64112aba56a4b2544.tar
gsoc2013-evolution-78bf9d9d708dd255cc0966d64112aba56a4b2544.tar.gz
gsoc2013-evolution-78bf9d9d708dd255cc0966d64112aba56a4b2544.tar.bz2
gsoc2013-evolution-78bf9d9d708dd255cc0966d64112aba56a4b2544.tar.lz
gsoc2013-evolution-78bf9d9d708dd255cc0966d64112aba56a4b2544.tar.xz
gsoc2013-evolution-78bf9d9d708dd255cc0966d64112aba56a4b2544.tar.zst
gsoc2013-evolution-78bf9d9d708dd255cc0966d64112aba56a4b2544.zip
Bug 624128 - Folder -> Subscriptions is always enabled
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mail-to-task/mail-to-task.c8
-rw-r--r--plugins/mailing-list-actions/mailing-list-actions.c3
2 files changed, 3 insertions, 8 deletions
diff --git a/plugins/mail-to-task/mail-to-task.c b/plugins/mail-to-task/mail-to-task.c
index 504dca64a0..b62b10f3db 100644
--- a/plugins/mail-to-task/mail-to-task.c
+++ b/plugins/mail-to-task/mail-to-task.c
@@ -1100,12 +1100,10 @@ static GtkActionEntry single_selection_entries[] = {
static void
update_actions_any_cb (EMailReader *reader,
+ guint32 state,
GtkActionGroup *action_group)
{
gboolean sensitive;
- guint32 state;
-
- state = e_mail_reader_check_state (reader);
sensitive =
(state & E_MAIL_READER_SELECTION_SINGLE) ||
@@ -1116,12 +1114,10 @@ update_actions_any_cb (EMailReader *reader,
static void
update_actions_one_cb (EMailReader *reader,
+ guint32 state,
GtkActionGroup *action_group)
{
gboolean sensitive;
- guint32 state;
-
- state = e_mail_reader_check_state (reader);
sensitive = (state & E_MAIL_READER_SELECTION_SINGLE);
diff --git a/plugins/mailing-list-actions/mailing-list-actions.c b/plugins/mailing-list-actions/mailing-list-actions.c
index 33101db8cd..ce60275db7 100644
--- a/plugins/mailing-list-actions/mailing-list-actions.c
+++ b/plugins/mailing-list-actions/mailing-list-actions.c
@@ -335,12 +335,11 @@ static GtkActionEntry mailing_list_entries[] = {
static void
update_actions_cb (EMailReader *reader,
+ guint32 state,
GtkActionGroup *action_group)
{
gboolean sensitive;
- guint32 state;
- state = e_mail_reader_check_state (reader);
sensitive = (state & E_MAIL_READER_SELECTION_IS_MAILING_LIST);
gtk_action_group_set_sensitive (action_group, sensitive);
}