]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-view-private.h
Autoscroll feature with the context menu. Fixes bug #323670. Thanks to
[evince.git] / shell / ev-view-private.h
index e839a31545628370bea1322acbdd2a719f3d6e8a..22bd7a0e76b7863c15822c5e806e3d44d52331c8 100644 (file)
@@ -36,6 +36,14 @@ typedef struct {
        gdouble vadj;
 } DragInfo;
 
+/* Autoscrolling */
+typedef struct {
+       gboolean autoscrolling;
+       guint last_y;
+       guint start_y;
+       guint timeout_id;       
+} AutoScrollInfo;
+
 /* Information for handling selection */
 typedef struct {
        gboolean in_drag;
@@ -65,7 +73,8 @@ typedef enum {
        EV_VIEW_CURSOR_LINK,
        EV_VIEW_CURSOR_WAIT,
        EV_VIEW_CURSOR_HIDDEN,
-       EV_VIEW_CURSOR_DRAG
+       EV_VIEW_CURSOR_DRAG,
+       EV_VIEW_CURSOR_AUTOSCROLL,
 } EvViewCursor;
 
 typedef enum {
@@ -133,6 +142,9 @@ struct _EvView {
 
        /* Information for middle clicking and dragging around. */
        DragInfo drag_info;
+       
+       /* Autoscrolling */
+       AutoScrollInfo scroll_info;
 
        /* Selection */
        GdkPoint motion;