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
This commit is contained in:
Farow authored and TingPing committed 2014-09-01 17:53:03 -04:00
1 parent d1c40196e3
commit fd95c729d5
2 files changed
+81 -78

No files matched your search

+2 -1
View File
@@ -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;