All pastes #36455 Raw Edit

Miscellany

public text v1 · immutable
#36455 ·published 2006-01-11 07:47 UTC
rendered paste body
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;
	}
	
}