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);
/**
ModestWindow *window);
void
-modest_ui_actions_check_window_dimming_rules (ModestWindow *window);
+modest_ui_actions_on_email_menu_activated (GtkAction *action,
+ ModestWindow *window);
+
+void
+modest_ui_actions_on_edit_menu_activated (GtkAction *action,
+ ModestWindow *window);
+
+void
+modest_ui_actions_on_format_menu_activated (GtkAction *action,
+ ModestWindow *window);
+
+void
+modest_ui_actions_on_view_menu_activated (GtkAction *action,
+ ModestWindow *window);
+
+void
+modest_ui_actions_on_tools_menu_activated (GtkAction *action,
+ ModestWindow *window);
+
+void
+modest_ui_actions_on_attachment_menu_activated (GtkAction *action,
+ ModestWindow *window);
+
+void
+modest_ui_actions_on_toolbar_csm_menu_activated (GtkAction *action,
+ ModestWindow *window);
+
+void
+modest_ui_actions_on_folder_view_csm_menu_activated (GtkAction *action,
+ ModestWindow *window);
+
+void
+modest_ui_actions_on_header_view_csm_menu_activated (GtkAction *action,
+ ModestWindow *window);
+
+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:
gpointer user_data);
/**
+ * modest_ui_actions_compose_msg
+ * @win: Modest main window (can be NULL)
+ * @to_str: "To:" header, or NULL
+ * @cc_str: "Cc:" header, or NULL
+ * @bcc_str: "Bcc:" header, or NULL
+ * @subject_str: Subject of the message, or NULL
+ * @body_str: Body of the message (without signature), or NULL
+ * @attachments: attachments List of file URIs to attach
+ * @set_as_modified: wheter or not the message is set initially as modified or not
+ *
* Opens a new message editor for composing
- * @param win Modest main window (can be NULL)
- * @param to_str "To:" header, or NULL
- * @param cc_str "Cc:" header, or NULL
- * @param bcc_str "Bcc:" header, or NULL
- * @param subject_str Subject of the message, or NULL
- * @param body_str Body of the message (without signature), or NULL
- * @param attachments List of file URIs to attach
*/
void modest_ui_actions_compose_msg (ModestWindow *win,
const gchar *to_str,
const gchar *bcc_str,
const gchar *subject_str,
const gchar *body_str,
- GSList *attachments);
+ GSList *attachments,
+ gboolean set_as_modified);
void modest_ui_actions_on_account_connection_error (GtkWindow *parent_window,
TnyAccount *account);
+gchar *modest_ui_actions_get_msg_already_deleted_error_msg (ModestWindow *win);
+
+
G_END_DECLS
#endif /* __MODEST_UI_ACTIONS_H__ */