* Show only "Send&Receive/All" option when there are 2 or more
accounts. The older condition was "there are 1 or more"
(fixes NB#59238).
pmo-trunk-r2850
accounts = modest_account_mgr_account_names (modest_runtime_get_account_mgr (), TRUE);
send_receive_all = gtk_ui_manager_get_action (parent_priv->ui_manager,
"/MenuBar/ToolsMenu/ToolsSendReceiveMainMenu/ToolsSendReceiveAllMenu");
accounts = modest_account_mgr_account_names (modest_runtime_get_account_mgr (), TRUE);
send_receive_all = gtk_ui_manager_get_action (parent_priv->ui_manager,
"/MenuBar/ToolsMenu/ToolsSendReceiveMainMenu/ToolsSendReceiveAllMenu");
- gtk_action_set_visible (send_receive_all, g_slist_length (accounts));
+ gtk_action_set_visible (send_receive_all, g_slist_length (accounts) > 1);
modest_account_mgr_free_account_names (accounts);
}
}
modest_account_mgr_free_account_names (accounts);
}
}