summary refs log tree commit diff stats
path: root/src/fe-gtk/xtext.h
diff options
context:
space:
mode:
authorFarow <farow.the.time.traveler@gmail.com>2014-08-23 21:08:10 +0300
committerTingPing <tingping@tingping.se>2014-09-01 17:53:03 -0400
commitfd95c729d5ecdb8a65497ae9b6049748d5a3c127 (patch)
tree09dcf3e294977a829572bf36e8a323a5cf8a01ef /src/fe-gtk/xtext.h
parentd1c40196e3a5087980c67b1a35928a3fff81c0ae (diff)
xtext: Add word and line selection modes
Similar to a GtkTextView if you double click you enter word selection mode
and if you triple click you enter line selection mode.
Allowing you to drag and select more than a single character.

Closes #1108
Diffstat (limited to 'src/fe-gtk/xtext.h')
-rw-r--r--src/fe-gtk/xtext.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-gtk/xtext.h b/src/fe-gtk/xtext.h
index 0a4215c5..73f5b52d 100644
--- a/src/fe-gtk/xtext.h
+++ b/src/fe-gtk/xtext.h
@@ -216,7 +216,8 @@ struct _GtkXText
 
 	/* various state information */
 	unsigned int moving_separator:1;
-	unsigned int word_or_line_select:1;
+	unsigned int word_select:1;
+	unsigned int line_select:1;
 	unsigned int button_down:1;
 	unsigned int hilighting:1;
 	unsigned int dont_render:1;