~ubuntu-branches/ubuntu/precise/evince/precise-proposed

« back to all changes in this revision

Viewing changes to libview/ev-view.c

  • Committer: Package Import Robot
  • Author(s): Chase Douglas, Francis Ginther
  • Date: 2012-09-06 12:44:43 UTC
  • Revision ID: package-import@ubuntu.com-20120906124443-kts2rckas0m1oyds
Tags: 3.4.0-0ubuntu1.4
[ Francis Ginther ]
Update gesture references for "Open Input Framework" rename (LP: #1045996) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
307
307
 
308
308
/*** Gestures ***/
309
309
#ifdef HAVE_LIBGRIP
310
 
static void       _utouch_ev_gesture_callback                (GtkWidget          *widget,
311
 
                                                              GripTimeType        time_type,
312
 
                                                              GripGestureEvent   *event,
313
 
                                                              gpointer            user_data);
 
310
static void       _oif_ev_gesture_callback                (GtkWidget          *widget,
 
311
                                                            GripTimeType        time_type,
 
312
                                                            GripGestureEvent   *event,
 
313
                                                            gpointer            user_data);
314
314
#endif
315
315
 
316
316
G_DEFINE_TYPE_WITH_CODE (EvView, ev_view, GTK_TYPE_CONTAINER,
3040
3040
#ifdef HAVE_LIBGRIP
3041
3041
 
3042
3042
static void
3043
 
_utouch_ev_gesture_callback (GtkWidget        *widget,
3044
 
                             GripTimeType      time_type,
3045
 
                             GripGestureEvent *event,
3046
 
                             gpointer          user_data)
 
3043
_oif_ev_gesture_callback (GtkWidget        *widget,
 
3044
                           GripTimeType      time_type,
 
3045
                           GripGestureEvent *event,
 
3046
                           gpointer          user_data)
3047
3047
  {
3048
3048
        EvView *view = EV_VIEW (widget);
3049
3049
 
3124
3124
 
3125
3125
                        gdouble delta_x = -drag->delta_x;
3126
3126
                        gdouble delta_y = -drag->delta_y;
3127
 
                        _utouch_ev_view_drag (view, delta_x, delta_y);
 
3127
                        _oif_ev_view_drag (view, delta_x, delta_y);
3128
3128
                        break;
3129
3129
                }
3130
3130
 
4824
4824
                                GRIP_GESTURE_PINCH,
4825
4825
                                GRIP_DEVICE_ALL,
4826
4826
                                2,
4827
 
                                _utouch_ev_gesture_callback,
 
4827
                                _oif_ev_gesture_callback,
4828
4828
                                NULL, NULL);
4829
4829
 
4830
4830
                        grip_gesture_manager_register_window (
4833
4833
                                GRIP_GESTURE_DRAG,
4834
4834
                                GRIP_DEVICE_TOUCHSCREEN,
4835
4835
                                2,
4836
 
                                _utouch_ev_gesture_callback,
 
4836
                                _oif_ev_gesture_callback,
4837
4837
                                NULL, NULL);
4838
4838
 
4839
4839
                        grip_gesture_manager_register_window (
4842
4842
                                GRIP_GESTURE_ROTATE,
4843
4843
                                GRIP_DEVICE_ALL,
4844
4844
                                2,
4845
 
                                _utouch_ev_gesture_callback,
 
4845
                                _oif_ev_gesture_callback,
4846
4846
                                NULL, NULL);
4847
4847
                }
4848
4848
 
5643
5643
 
5644
5644
#ifdef HAVE_LIBGRIP
5645
5645
void
5646
 
_utouch_ev_view_drag (EvView  *view,
5647
 
                      gdouble  x,
5648
 
                      gdouble  y)
 
5646
_oif_ev_view_drag (EvView  *view,
 
5647
                    gdouble  x,
 
5648
                    gdouble  y)
5649
5649
{
5650
5650
        gdouble value;
5651
5651
 
5661
5661
}
5662
5662
 
5663
5663
void
5664
 
_utouch_ev_view_zoom_in_smooth (EvView *view, float factor)
 
5664
_oif_ev_view_zoom_in_smooth (EvView *view, float factor)
5665
5665
{
5666
5666
        gdouble scale;
5667
5667
 
5673
5673
}
5674
5674
 
5675
5675
void
5676
 
_utouch_ev_view_zoom_out_smooth (EvView *view, float factor)
 
5676
_oif_ev_view_zoom_out_smooth (EvView *view, float factor)
5677
5677
{
5678
5678
        gdouble scale;
5679
5679