diff options
author | Chris Lahey <clahey@src.gnome.org> | 2000-01-12 06:10:20 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-01-12 06:10:20 +0800 |
commit | a097129f6847f85035f3b43cf3f36353b82124bc (patch) | |
tree | 75652d2005c7847795d31ff5aff49bd6cdb7c46b /widgets/text/e-text.h | |
parent | a01de808cd46baea31419a42b221cb65974a9fb1 (diff) | |
download | gsoc2013-evolution-a097129f6847f85035f3b43cf3f36353b82124bc.tar.gz gsoc2013-evolution-a097129f6847f85035f3b43cf3f36353b82124bc.tar.zst gsoc2013-evolution-a097129f6847f85035f3b43cf3f36353b82124bc.zip |
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
Diffstat (limited to 'widgets/text/e-text.h')
-rw-r--r-- | widgets/text/e-text.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/widgets/text/e-text.h b/widgets/text/e-text.h index b18b93d7f2..23713563c3 100644 --- a/widgets/text/e-text.h +++ b/widgets/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 */ }; |