void modest_ui_actions_on_new_msg (GtkAction *action, ModestWindow *win);
+void modest_ui_actions_on_new_msg_or_folder (GtkAction *action, ModestWindow *win);
+
void modest_ui_actions_on_open (GtkAction *action, ModestWindow *win);
void modest_ui_actions_on_reply (GtkAction *action, ModestWindow *win);
void modest_ui_actions_on_msg_recpt_activated (ModestMsgView *msgview, const gchar *address,
ModestWindow *win);
-void modest_ui_actions_on_send (GtkWidget *widget,
+gboolean modest_ui_actions_on_send (GtkWidget *widget,
ModestMsgEditWindow *edit_window);
-void modest_ui_actions_on_save_to_drafts (GtkWidget *widget,
+gboolean modest_ui_actions_on_save_to_drafts (GtkWidget *widget,
ModestMsgEditWindow *edit_window);
*
* Refreshes all the accounts
**/
-void modest_ui_actions_do_send_receive_all (ModestWindow *win);
+void modest_ui_actions_do_send_receive_all (ModestWindow *win,
+ gboolean force_connection);
/**
* modest_ui_actions_do_send_receive:
* default account
**/
void modest_ui_actions_do_send_receive (const gchar *account_name,
+ gboolean force_connection,
ModestWindow *win);
/**
void
modest_ui_actions_check_toolbar_dimming_rules (ModestWindow *window);
+void
+modest_ui_actions_check_menu_dimming_rules (ModestWindow *window);
+
+/* Dimming rules groups */
+#define MODEST_DIMMING_RULES_TOOLBAR "ModestToolbarDimmingRules"
+#define MODEST_DIMMING_RULES_MENU "ModestMenuDimmingRules"
+#define MODEST_DIMMING_RULES_CLIPBOARD "ModestClipboardDimmingRules"
+
/**
* modest_ui_actions_move_folder_error_handler:
* @mail_op: a #ModestMailOperation