From 1a44ff0e97b73be2728f3ecef9fe58027560c798 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Tue, 8 Feb 2000 03:15:56 +0000 Subject: Added line wrap and a max number of lines (max number of lines is only 2000-02-07 Christopher James Lahey * 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 --- widgets/text/e-text.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'widgets/text/e-text.h') diff --git a/widgets/text/e-text.h b/widgets/text/e-text.h index f4f43a156b..ef8da442d6 100644 --- a/widgets/text/e-text.h +++ b/widgets/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 { -- cgit