Index: em-format-html-display.c =================================================================== RCS file: /cvs/gnome/evolution/mail/em-format-html-display.c,v retrieving revision 1.83 diff -u -r1.83 em-format-html-display.c --- em-format-html-display.c 1 Jan 2006 13:56:30 -0000 1.83 +++ em-format-html-display.c 11 Jan 2006 16:08:06 -0000 @@ -399,6 +399,20 @@ return type; } +static gboolean +efhd_scroll_event(GtkWidget *w, GdkEventScroll *event, EMFormatHTMLDisplay *efhd) +{ + if(event->direction == GDK_SCROLL_UP) + { + gtk_html_zoom_in (efhd->formathtml.html); + } + else if(event->direction == GDK_SCROLL_DOWN) + { + gtk_html_zoom_out (efhd->formathtml.html); + } + return TRUE; +} + EMFormatHTMLDisplay *em_format_html_display_new(void) { EMFormatHTMLDisplay *efhd; @@ -409,6 +423,7 @@ g_signal_connect(efhd->formathtml.html, "link_clicked", G_CALLBACK(efhd_html_link_clicked), efhd); g_signal_connect(efhd->formathtml.html, "on_url", G_CALLBACK(efhd_html_on_url), efhd); g_signal_connect(efhd->formathtml.html, "button_press_event", G_CALLBACK(efhd_html_button_press_event), efhd); + g_signal_connect(efhd->formathtml.html, "scroll_event", G_CALLBACK(efhd_scroll_event), efhd); return efhd; }