- /* Settings menu buttons */
- add_to_menu (self, HILDON_APP_MENU (priv->app_menu), _("TODO: new account"),
- G_CALLBACK (on_new_account),
- group, NULL);
- add_to_menu (self, HILDON_APP_MENU (priv->app_menu), _("TODO: edit accounts"),
- G_CALLBACK (modest_ui_actions_on_accounts),
- group, NULL);
- add_to_menu (self, HILDON_APP_MENU (priv->app_menu), _("mcen_me_inbox_options"),
- G_CALLBACK (modest_ui_actions_on_settings),
- group, NULL);
- add_to_menu (self, HILDON_APP_MENU (priv->app_menu), _("mcen_me_inbox_globalsmtpservers"),
- G_CALLBACK (modest_ui_actions_on_smtp_servers),
- group, G_CALLBACK (modest_ui_dimming_rules_on_tools_smtp_servers));
- add_to_menu (self, HILDON_APP_MENU (priv->app_menu), _("mcen_me_viewer_newemail"),
- G_CALLBACK (modest_ui_actions_on_new_msg),
- group, G_CALLBACK (modest_ui_dimming_rules_on_new_msg));
- add_to_menu (self, HILDON_APP_MENU (priv->app_menu), _("mcen_me_inbox_sendandreceive"),
- G_CALLBACK (modest_ui_actions_on_send_receive),
- group, G_CALLBACK (modest_ui_dimming_rules_on_send_receive_all));
- add_to_menu (self, HILDON_APP_MENU (priv->app_menu), _("mcen_me_outbox_cancelsend"),
- G_CALLBACK (modest_ui_actions_cancel_send),
- group, G_CALLBACK (modest_ui_dimming_rules_on_cancel_sending_all));
+ return has_active;
+}
+
+static void
+update_progress_hint (ModestAccountsWindow *self)
+{
+ ModestAccountsWindowPrivate *priv = MODEST_ACCOUNTS_WINDOW_GET_PRIVATE (self);
+
+ if (has_active_operations (self)) {
+ priv->progress_hint = TRUE;
+ } else {
+ priv->progress_hint = FALSE;
+ }
+
+ if (!priv->progress_hint) {
+ priv->progress_hint = modest_window_mgr_has_progress_operation (modest_runtime_get_window_mgr ());
+ }