static gboolean
efhd_bar_scroll_event(GtkWidget *w, GdkEventScroll *event, EMFormatHTMLDisplay *efhd)
{
//boolean ret;
/* Emulate the scroll over the attachment bar, as if it is scrolled in the window.
It doesnt go automatically since the GnomeIconList is a layout by itself
g_signal_emit_by_name (gtk_widget_get_parent((GtkWidget *)efhd->formathtml.html), "scroll_event", event, &ret);*/
if(event->direction == GDK_SCROLL_UP)
{
gtk_html_zoom_in(((EMFormatHTML *) efhd)->html);
return TRUE;
}
else if(event->direction == GDK_SCROLL_DOWN)
{
gtk_html_zoom_out(((EMFormatHTML *) efhd)->html);
return TRUE;
}
}