X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-recpt-editor.c;h=a1d408e308a91b1b5ff622d7302615c5d05e013d;hp=357c1bd2fa3e2aaad08f0c0db696603b9a304b3f;hb=369c28b6d5a6f27d68e1c48558dd944dc04644aa;hpb=69ab2d486180875b69cf327cfc070b991d5528e5 diff --git a/src/widgets/modest-recpt-editor.c b/src/widgets/modest-recpt-editor.c index 357c1bd..a1d408e 100644 --- a/src/widgets/modest-recpt-editor.c +++ b/src/widgets/modest-recpt-editor.c @@ -556,7 +556,12 @@ modest_recpt_editor_on_insert_text (GtkTextBuffer *buffer, if (!is_valid_insert (text, len)) { gchar *new_text = create_valid_text (text, len); g_signal_stop_emission_by_name (G_OBJECT (buffer), "insert-text"); + g_signal_handlers_block_by_func (buffer, modest_recpt_editor_on_insert_text, + editor); gtk_text_buffer_insert (buffer, location, new_text, -1); + g_signal_handlers_unblock_by_func (buffer, + modest_recpt_editor_on_insert_text, + editor); g_free (new_text); return; }