]> granicus.if.org Git - graphviz/commitdiff
another shot for wheel problem
authorarif <devnull@localhost>
Thu, 4 Jun 2009 18:41:40 +0000 (18:41 +0000)
committerarif <devnull@localhost>
Thu, 4 Jun 2009 18:41:40 +0000 (18:41 +0000)
cmd/smyrna/gltemplate.c

index ea6e7dd5192ce006e95e49ea3215db52af4ae74e..21149870a199531a36e60babb741f7a6270457a5 100755 (executable)
@@ -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;
 }