summaryrefslogtreecommitdiff
path: root/libview/ev-view-private.h
diff options
context:
space:
mode:
authorCarlos Garcia Campos <[email protected]>2013-06-13 19:08:44 +0200
committerraveit65 <[email protected]>2017-09-06 18:25:34 +0200
commitac82f591013915acd09a345847c337589ac901ce (patch)
treea397755b264044bed2caeb6bc5ecfae7fd55a558 /libview/ev-view-private.h
parentb5b335319cf0768142e0e3ae8af6df984bf2a01b (diff)
downloadatril-ac82f591013915acd09a345847c337589ac901ce.tar.bz2
atril-ac82f591013915acd09a345847c337589ac901ce.tar.xz
libview: Make caret cursor blink
Based on GtkEntry and GtkTextView implementation, the caret cursor blinks when the view is active and caret navigation is enabled. It stops blinking after a while if there's no user interaction. It uses GtkSettings:gtk-cursor-blink-time and GtkSettings:gtk-cursor-blink-timeout. https://bugzilla.gnome.org/show_bug.cgi?id=702076 taken from: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=e6f7250
Diffstat (limited to 'libview/ev-view-private.h')
-rw-r--r--libview/ev-view-private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libview/ev-view-private.h b/libview/ev-view-private.h
index c5180397..c286efbe 100644
--- a/libview/ev-view-private.h
+++ b/libview/ev-view-private.h
@@ -217,6 +217,9 @@ struct _EvView {
/* Caret navigation */
gboolean caret_enabled;
gint cursor_offset;
+ gboolean cursor_visible;
+ guint cursor_blink_timeout_id;
+ guint cursor_blink_time;
/* Gestures */
GtkGesture *pan_gesture;