+ GdkDevice *grab_device;
+ GdkDevice *dnd_device;
+
+ guint selection_drag_handler;
+ guint scroll_timeout;
+
+ GtkTextWindow *text_window;
+ GtkTextWindow *left_window;
+ GtkTextWindow *right_window;
+ GtkTextWindow *top_window;
+ GtkTextWindow *bottom_window;
+
+ GtkAdjustment *hadjustment;
+ GtkAdjustment *vadjustment;
+
+ gint xoffset; /* Offsets between widget coordinates and buffer coordinates */
+ gint yoffset;
+ gint width; /* Width and height of the buffer */
+ gint height;
+
+ /* This is used to monitor the overall size request
+ * and decide whether we need to queue resizes when
+ * the buffer content changes.
+ *
+ * FIXME: This could be done in a simpler way by
+ * consulting the above width/height of the buffer + some
+ * padding values, however all of this request code needs
+ * to be changed to use GtkWidget Iface and deserves
+ * more attention.
+ */
+ GtkRequisition cached_size_request;
+
+ /* The virtual cursor position is normally the same as the
+ * actual (strong) cursor position, except in two circumstances:
+ *
+ * a) When the cursor is moved vertically with the keyboard
+ * b) When the text view is scrolled with the keyboard
+ *
+ * In case a), virtual_cursor_x is preserved, but not virtual_cursor_y
+ * In case b), both virtual_cursor_x and virtual_cursor_y are preserved.
+ */
+ gint virtual_cursor_x; /* -1 means use actual cursor position */
+ gint virtual_cursor_y; /* -1 means use actual cursor position */
+
+ GtkTextMark *first_para_mark; /* Mark at the beginning of the first onscreen paragraph */
+ gint first_para_pixels; /* Offset of top of screen in the first onscreen paragraph */
+
+ GtkTextMark *dnd_mark;
+ guint blink_timeout;
+
+ guint first_validate_idle; /* Idle to revalidate onscreen portion, runs before resize */
+ guint incremental_validate_idle; /* Idle to revalidate offscreen portions, runs after redraw */
+
+ GtkIMContext *im_context;
+ GtkWidget *popup_menu;
+
+ gint drag_start_x;
+ gint drag_start_y;
+
+ GSList *children;
+
+ GtkTextPendingScroll *pending_scroll;
+
+ gint pending_place_cursor_button;
+
+ /* Default style settings */
+ gint pixels_above_lines;
+ gint pixels_below_lines;
+ gint pixels_inside_wrap;
+ GtkWrapMode wrap_mode;
+ GtkJustification justify;
+ gint left_margin;
+ gint right_margin;
+ gint indent;
+ PangoTabArray *tabs;
+ guint editable : 1;
+
+ guint overwrite_mode : 1;
+ guint cursor_visible : 1;
+
+ /* if we have reset the IM since the last character entered */
+ guint need_im_reset : 1;
+
+ guint accepts_tab : 1;