diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-08-11 06:08:55 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-08-11 06:53:31 +0800 |
commit | 699e36491b564069bce8c36a79d4803b5d9492d1 (patch) | |
tree | b5a6e652ed45d589eeb6416bf11194c2e8175130 /mail/e-mail-display.c | |
parent | 18813ccd8f4367ac98348f08e183d858cfe963f5 (diff) | |
download | gsoc2013-evolution-699e36491b564069bce8c36a79d4803b5d9492d1.tar.gz gsoc2013-evolution-699e36491b564069bce8c36a79d4803b5d9492d1.tar.zst gsoc2013-evolution-699e36491b564069bce8c36a79d4803b5d9492d1.zip |
Change em_format_redraw() to em_format_queue_redraw().
This changes the behavior of the function: instead of redrawing
immediately it schedules the redraw from an idle callback. This
allows us to make multiple changes to EMFormat before redrawing.
Diffstat (limited to 'mail/e-mail-display.c')
-rw-r--r-- | mail/e-mail-display.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/e-mail-display.c b/mail/e-mail-display.c index fda1f3a034..58f4824799 100644 --- a/mail/e-mail-display.c +++ b/mail/e-mail-display.c @@ -204,7 +204,7 @@ mail_display_style_set (GtkWidget *widget, GTK_WIDGET_CLASS (parent_class)->style_set (widget, previous_style); mail_display_update_formatter_colors (E_MAIL_DISPLAY (widget)); - em_format_redraw (EM_FORMAT (priv->formatter)); + em_format_queue_redraw (EM_FORMAT (priv->formatter)); } static void @@ -264,7 +264,7 @@ mail_display_link_clicked (GtkHTML *html, } priv->formatter->header_wrap_flags = flags; - em_format_redraw (EM_FORMAT (priv->formatter)); + em_format_queue_redraw (EM_FORMAT (priv->formatter)); } else if (*uri == '#') gtk_html_jump_to_anchor (html, uri + 1); |