From a097129f6847f85035f3b43cf3f36353b82124bc Mon Sep 17 00:00:00 2001 From: Chris Lahey Date: Tue, 11 Jan 2000 22:10:20 +0000 Subject: Blocked the tab key from getting inserted into the buffer since the * widgets/e-text-event-processor-emacs-like.c: Blocked the tab key from getting inserted into the buffer since the renderer doesn't know what a tab is. * widgets/e-text.c, widgets/e-text.h: Fixed a memory leak. Added a blinking cursor and scrolling for the text item. svn path=/trunk/; revision=1554 --- widgets/e-text/e-text.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'widgets/e-text/e-text.h') diff --git a/widgets/e-text/e-text.h b/widgets/e-text/e-text.h index b18b93d7f2..23713563c3 100644 --- a/widgets/e-text/e-text.h +++ b/widgets/e-text/e-text.h @@ -148,6 +148,17 @@ struct _EText { int selection_end; /* End of selection */ gboolean select_by_word; /* Current selection is by word */ + /* This section is for drag scrolling. */ + gint timeout_id; /* Current timeout id for scrolling */ + GTimer *timer; /* Timer for blinking cursor and scrolling */ + + gint lastx, lasty; /* Last x and y motion events */ + gint last_state; /* Last state */ + gulong scroll_start; /* Starting time for scroll (microseconds) */ + + gint show_cursor; /* Is cursor currently shown */ + gboolean button_down; /* Is mouse button 1 down */ + ETextEventProcessor *tep; /* Text Event Processor */ }; -- cgit v1.2.3