* src/widgets/modest-msg-edit-window.h:
[modest] / src / modest-ui-actions.h
index 89679f5..8404866 100644 (file)
@@ -67,6 +67,8 @@ void     modest_ui_actions_on_check_names (GtkAction *action, ModestMsgEditWindo
 
 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);
@@ -152,9 +154,9 @@ void     modest_ui_actions_on_msg_attachment_clicked   (ModestMsgView *msgview,
 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);
 
 
@@ -199,7 +201,8 @@ void     modest_ui_actions_cancel_send (GtkAction *action,  ModestWindow *win);
  * 
  * 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:
@@ -212,6 +215,7 @@ void    modest_ui_actions_do_send_receive_all          (ModestWindow *win);
  * default account
  **/
 void    modest_ui_actions_do_send_receive              (const gchar *account_name,
+                                                       gboolean force_connection,
                                                        ModestWindow *win);
 
 /**
@@ -375,6 +379,14 @@ modest_ui_actions_on_header_view_csm_menu_activated (GtkAction *action,
 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