{ "/MenuBar/EditMenu/RedoMenu", G_CALLBACK (modest_ui_dimming_rules_on_redo) },
{ "/MenuBar/EditMenu/PasteMenu", G_CALLBACK (modest_ui_dimming_rules_on_editor_paste) },
{ "/MenuBar/AttachmentsMenu/RemoveAttachmentsMenu", G_CALLBACK (modest_ui_dimming_rules_on_editor_remove_attachment) },
+ { "/MenuBar/AttachmentsMenu/InsertImageMenu", G_CALLBACK (modest_ui_dimming_rules_on_insert_image) },
{ "/MenuBar/EmailMenu/SaveToDraftsMenu", G_CALLBACK (modest_ui_dimming_rules_on_save_to_drafts) },
};
return dimmed;
}
+
+gboolean
+modest_ui_dimming_rules_on_insert_image (ModestWindow *win,
+ gpointer user_data)
+{
+ g_return_val_if_fail (MODEST_MSG_EDIT_WINDOW (win), FALSE);
+
+ ModestMsgEditFormat format =
+ modest_msg_edit_window_get_format (MODEST_MSG_EDIT_WINDOW (win));
+
+ return (format != MODEST_MSG_EDIT_FORMAT_HTML);
+}
gboolean modest_ui_dimming_rules_on_editor_paste (ModestWindow *win, gpointer user_data);
gboolean modest_ui_dimming_rules_on_editor_paste_show_menu (ModestWindow *win, gpointer user_data);
gboolean modest_ui_dimming_rules_on_save_to_drafts (ModestWindow *win, gpointer user_data);
+gboolean modest_ui_dimming_rules_on_insert_image (ModestWindow *win, gpointer user_data);
G_END_DECLS
#endif