g_free(tmp);
#ifdef USE_ENCHANT
- if (compose->gtkaspell->check_while_typing)
+ if (compose->gtkaspell && compose->gtkaspell->check_while_typing)
gtkaspell_highlight_all(compose->gtkaspell);
#endif
mfield = BODY_FIELD_PRESENT;
compose_attach_from_list(compose, quote_fmt_get_attachments_list(), FALSE);
quote_fmt_reset_vartable();
#ifdef USE_ENCHANT
- if (compose->gtkaspell->check_while_typing)
+ if (compose->gtkaspell && compose->gtkaspell->check_while_typing)
gtkaspell_highlight_all(compose->gtkaspell);
#endif
}
procmsg_msginfo_free(full_msginfo);
#ifdef USE_ENCHANT
- if (compose->gtkaspell->check_while_typing)
+ if (compose->gtkaspell && compose->gtkaspell->check_while_typing)
gtkaspell_highlight_all(compose->gtkaspell);
#endif
}
{
Compose *compose = (Compose *) data;
- if(compose->gtkaspell->recheck_when_changing_dict == FALSE)
+ if(compose->gtkaspell &&
+ compose->gtkaspell->recheck_when_changing_dict == FALSE)
return;
gtkaspell_highlight_all(compose->gtkaspell);
}
}
}
- compose->gtkaspell = gtkaspell;
compose_spell_menu_changed(compose);
claws_spell_entry_set_gtkaspell(CLAWS_SPELL_ENTRY(subject_entry), gtkaspell);
+ compose->gtkaspell = gtkaspell;
#endif
compose_select_account(compose, account, TRUE);
compose_changed_cb(NULL, compose);
#ifdef USE_ENCHANT
- if (compose->gtkaspell->check_while_typing)
+ if (compose->gtkaspell && compose->gtkaspell->check_while_typing)
gtkaspell_highlight_all(compose->gtkaspell);
#endif
}
}
#ifdef USE_ENCHANT
- if (files_inserted > 0 && compose->gtkaspell->check_while_typing)
+ if (files_inserted > 0 && compose->gtkaspell &&
+ compose->gtkaspell->check_while_typing)
gtkaspell_highlight_all(compose->gtkaspell);
#endif
}
#ifdef USE_ENCHANT
if (GTK_WIDGET_HAS_FOCUS(compose->text) &&
- compose->gtkaspell->check_while_typing)
+ compose->gtkaspell &&
+ compose->gtkaspell->check_while_typing)
gtkaspell_highlight_all(compose->gtkaspell);
#endif
}
#ifdef USE_ENCHANT
if (GTK_WIDGET_HAS_FOCUS(compose->text) &&
- compose->gtkaspell->check_while_typing)
+ compose->gtkaspell &&
+ compose->gtkaspell->check_while_typing)
gtkaspell_highlight_all(compose->gtkaspell);
#endif
}
#ifdef USE_ENCHANT
if (GTK_WIDGET_HAS_FOCUS(compose->text) &&
- compose->gtkaspell->check_while_typing)
+ compose->gtkaspell &&
+ compose->gtkaspell->check_while_typing)
gtkaspell_highlight_all(compose->gtkaspell);
#endif
}