aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-text/e-text.h
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-02-08 11:15:56 +0800
committerChris Lahey <clahey@src.gnome.org>2000-02-08 11:15:56 +0800
commit1a44ff0e97b73be2728f3ecef9fe58027560c798 (patch)
treef6e53657899ec9d772104ca90c1571f864dc6874 /widgets/e-text/e-text.h
parent358b21acbb66bbb700f6d3ff3080229e33887d78 (diff)
downloadgsoc2013-evolution-1a44ff0e97b73be2728f3ecef9fe58027560c798.tar.gz
gsoc2013-evolution-1a44ff0e97b73be2728f3ecef9fe58027560c798.tar.zst
gsoc2013-evolution-1a44ff0e97b73be2728f3ecef9fe58027560c798.zip
Added line wrap and a max number of lines (max number of lines is only
2000-02-07 Christopher James Lahey <clahey@helixcode.com> * widgets/e-text.h, widgets/e-text.c: Added line wrap and a max number of lines (max number of lines is only obeyed if text is not being edited). svn path=/trunk/; revision=1691
Diffstat (limited to 'widgets/e-text/e-text.h')
-rw-r--r--widgets/e-text/e-text.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/widgets/e-text/e-text.h b/widgets/e-text/e-text.h
index f4f43a156b..ef8da442d6 100644
--- a/widgets/e-text/e-text.h
+++ b/widgets/e-text/e-text.h
@@ -63,10 +63,10 @@ BEGIN_GNOME_DECLS
* editable boolean RW Can this item be edited
* use_ellipsis boolean RW Whether to use ellipsises if text gets cut off. Meaningless if clip == false.
* ellipsis string RW The characters to use as ellipsis. NULL = "...".
+ * line_wrap boolean RW Line wrap when not editing.
+ * max_line_wrap int RW Number of lines possible when doing line wrap.
*
* These are not implemented yet:
- * line_wrap boolean RW Line wrap when not editing.
- * line_wrap_on_edit boolean RW Switch to line wrap when editing.
* background boolean RW Draw a background rectangle.
* background_on_edit boolean RW Draw a background when editing.
*/
@@ -168,11 +168,15 @@ struct _EText {
gchar *clipboard_selection; /* Clipboard selection text */
gint clipboard_length; /* Clipboard selection text length*/
- guint pointer_in : 1;
- guint default_cursor_shown : 1;
+ guint pointer_in : 1; /* Is the pointer currently over us? */
+ guint default_cursor_shown : 1; /* Is the default cursor currently shown? */
+
+ guint line_wrap : 1; /* Do line wrap */
+
+ gint max_lines; /* Max number of lines (-1 = infinite) */
- GdkCursor *default_cursor;
- GdkCursor *i_cursor;
+ GdkCursor *default_cursor; /* Default cursor (arrow) */
+ GdkCursor *i_cursor; /* I beam cursor */
};
struct _ETextClass {