* If you try to move to plain text, but do not confirm
the action, the menu radio action should return to plain
text (fixes NB#60650).
pmo-trunk-r2558
gint file_format)
{
ModestMsgEditWindowPrivate *priv;
gint file_format)
{
ModestMsgEditWindowPrivate *priv;
+ ModestWindowPrivate *parent_priv;
gint current_format;
g_return_if_fail (MODEST_IS_MSG_EDIT_WINDOW (window));
gint current_format;
g_return_if_fail (MODEST_IS_MSG_EDIT_WINDOW (window));
+ parent_priv = MODEST_WINDOW_GET_PRIVATE (window);
priv = MODEST_MSG_EDIT_WINDOW_GET_PRIVATE (window);
current_format = wp_text_buffer_is_rich_text (WP_TEXT_BUFFER (priv->text_buffer))
priv = MODEST_MSG_EDIT_WINDOW_GET_PRIVATE (window);
current_format = wp_text_buffer_is_rich_text (WP_TEXT_BUFFER (priv->text_buffer))
dialog = hildon_note_new_confirmation (NULL, _("emev_nc_formatting_lost"));
response = gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
dialog = hildon_note_new_confirmation (NULL, _("emev_nc_formatting_lost"));
response = gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
- if (response == GTK_RESPONSE_OK)
+ if (response == GTK_RESPONSE_OK) {
wp_text_buffer_enable_rich_text (WP_TEXT_BUFFER (priv->text_buffer), FALSE);
wp_text_buffer_enable_rich_text (WP_TEXT_BUFFER (priv->text_buffer), FALSE);
+ } else {
+ GtkToggleAction *action = GTK_TOGGLE_ACTION (gtk_ui_manager_get_action (parent_priv->ui_manager, "/MenuBar/FormatMenu/FileFormatMenu/FileFormatFormattedTextMenu"));
+ toggle_action_set_active_block_notify (action, TRUE);
+ }