* drawing area using mouse or touchpad.
*/
void drawing_area_event_scroll (GtkWidget *widget,
- GdkEventScroll *event, FamiliaData *data)
+ GdkEvent *event, FamiliaData *data)
{
GtkAdjustment *adjustment = NULL;
gdouble value = 0;
assert(event->type == GDK_SCROLL);
- switch(event->direction) {
+ switch(event->scroll.direction) {
case GDK_SCROLL_UP:
adjustment = data->vadjustment;
step = 1;
adjustment = data->hadjustment;
step = 1;
break;
+ default:
+ break;
}
if (adjustment != NULL) {