From: arif Date: Thu, 4 Jun 2009 18:41:40 +0000 (+0000) Subject: another shot for wheel problem X-Git-Tag: LAST_LIBGRAPH~32^2~1946 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=50aa45affcb55b74b40000edf563f813cdc633e1;p=graphviz another shot for wheel problem --- diff --git a/cmd/smyrna/gltemplate.c b/cmd/smyrna/gltemplate.c index ea6e7dd51..21149870a 100755 --- a/cmd/smyrna/gltemplate.c +++ b/cmd/smyrna/gltemplate.c @@ -393,14 +393,15 @@ static gboolean button_release_event(GtkWidget * widget, 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; }