~bratsche/oif/eog-zoom-drag-gestures

« back to all changes in this revision

Viewing changes to src/eog-scroll-view.c

  • Committer: Cody Russell
  • Date: 2010-12-14 15:14:05 UTC
  • Revision ID: crussell@canonical.com-20101214151405-xybju540nji0ko1a
Fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1605
1605
        EogScrollView *view;
1606
1606
        EogScrollViewPrivate *priv;
1607
1607
 
1608
 
        view = EOG_SCROLL_VIEW (data); // XXX
 
1608
        view = EOG_SCROLL_VIEW (widget);
1609
1609
        priv = view->priv;
1610
1610
 
1611
1611
        if (time_type == GRIP_TIME_START) {
1612
1612
                switch (event->type) {
1613
1613
                case GRIP_GESTURE_DRAG:
1614
1614
                        priv->dragging = TRUE;
1615
 
                        priv->drag_anchor_x = event->x;
1616
 
                        priv->drag_anchor_y = event->y;
 
1615
                        priv->drag_anchor_x = event->position_x;
 
1616
                        priv->drag_anchor_y = event->position_y;
1617
1617
 
1618
1618
                        priv->drag_ofs_x = priv->xofs;
1619
1619
                        priv->drag_ofs_y = priv->yofs;