John Spray wrote:

> Hi,

Hi!
 
> Sending this to the list, because I'm not sure where is best to send
> it.  Would it be better to submit stuff like this into the bugzilla?

This is the correct place for patches.
 
> Anyway, this handles the gtk scroll event to catch scrollwheels, and
> scrolls the document accordingly.

Looks reasonable, but I'll let someone more gtk-knowledgeable to apply it
;-)

Nitpick: try to adjust to LyX coding style: 

+        if(event->direction==GDK_SCROLL_UP)
+                step*=-1.0f;
+
+       adjustment->set_value(adjustment->get_value()+step);

should be

+       if (event->direction == GDK_SCROLL_UP)
+               step *= -1;
+
+       adjustment->set_value(adjustment->get_value() + step);

and so on.

Alfredo


Reply via email to