summary refs log tree commit diff stats
path: root/src/fe-gtk/xtext.h
diff options
context:
space:
mode:
authorRichardHitt <rbh00@netcom.com>2014-02-02 00:45:51 -0800
committerTingPing <tingping@tingping.se>2014-02-04 21:26:58 -0500
commit4c1fd3ee67de89dc0dce314df94470fe2ad48868 (patch)
tree8434df16a5679b1af6f0c6ffb142707dba373149 /src/fe-gtk/xtext.h
parent10d3c151438c5580756b6a66a059742ace51333b (diff)
Fix many many problems in xtext.c related to character width.
* Rework multiline logic to use a GSList, not an array
* Remove all multibyte booleans; everything is potentially multibyte
  - Except for gtk_xtext_get_word(), which needs special attention
* Enhance pango work for bold and italics (attr_list -> attr_lists[4])
* Enhance gtk_xtext_strip_color () to save bold, italics info
* Involve emphasis information in all pixel-width calculations
* Rework find_x () to account for emphasis info in widths

Closes #891
Fixes #872
Diffstat (limited to 'src/fe-gtk/xtext.h')
-rw-r--r--src/fe-gtk/xtext.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/fe-gtk/xtext.h b/src/fe-gtk/xtext.h
index c704638f..136121f4 100644
--- a/src/fe-gtk/xtext.h
+++ b/src/fe-gtk/xtext.h
@@ -74,7 +74,6 @@ typedef struct {
 	gfloat old_value;					/* last known adj->value */
 	textentry *text_first;
 	textentry *text_last;
-	guint16 grid_offset[256];
 
 	textentry *last_ent_start;	  /* this basically describes the last rendered */
 	textentry *last_ent_end;	  /* selection. */
@@ -98,7 +97,6 @@ typedef struct {
 	unsigned int time_stamp:1;
 	unsigned int scrollbar_down:1;
 	unsigned int needs_recalc:1;
-	unsigned int grid_dirty:1;
 	unsigned int marker_seen:1;
 	unsigned int reset_marker_pos:1;
 
@@ -200,9 +198,7 @@ struct _GtkXText
 	int clip_y2;		/* from y to y2 */
 
 	/* current text states */
-	unsigned int bold:1;
 	unsigned int underline:1;
-	unsigned int italics:1;
 	unsigned int hidden:1;
 
 	/* text parsing states */