static gboolean
scroll_event(GtkWidget * widget, GdkEventScroll * event, gpointer data)
{
- g_signal_handlers_block_by_func(G_OBJECT(view->drawing_area),scroll_event,NULL);
+ g_signal_handlers_disconnect_by_func(G_OBJECT(view->drawing_area),scroll_event,NULL);
if(event->direction==0)
view->mouse.dx = -30;
if(event->direction==1)
view->mouse.dx = 30;
glmotion_zoom(view);
glexpose();
- g_signal_handlers_unblock_by_func(G_OBJECT(view->drawing_area),scroll_event,NULL);
+// g_signal_handlers_unblock_by_func(G_OBJECT(view->drawing_area),scroll_event,NULL);
+ g_signal_connect(G_OBJECT(view->drawing_area), "scroll_event",G_CALLBACK(scroll_event), NULL);
return TRUE;
}