Mercurial > pidgin.yaz
diff finch/libgnt/gnttextview.h @ 18315:e659842fe66d
Add flags to a textview to decide whether to show scrollbars, and whether
to use word-wrapping or character-wrapping.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 27 Jun 2007 20:35:11 +0000 |
parents | 5c6f019e48f8 |
children | 841670dd24e1 |
line wrap: on
line diff
--- a/finch/libgnt/gnttextview.h Wed Jun 27 18:33:28 2007 +0000 +++ b/finch/libgnt/gnttextview.h Wed Jun 27 20:35:11 2007 +0000 @@ -47,6 +47,11 @@ typedef struct _GntTextViewPriv GntTextViewPriv; typedef struct _GntTextViewClass GntTextViewClass; +typedef enum { + GNT_TEXT_VIEW_NO_SCROLL = 1 << 0, + GNT_TEXT_VIEW_WRAP_CHAR = 1 << 1, +} GntTextViewFlag; + struct _GntTextView { GntWidget parent; @@ -55,6 +60,7 @@ GList *list; /* List of GntTextLine */ GList *tags; /* A list of tags */ + GntTextViewFlag flags; }; typedef enum @@ -177,6 +183,14 @@ */ void gnt_text_view_attach_scroll_widget(GntTextView *view, GntWidget *widget); +/** + * Set a GntTextViewFlag for the textview widget. + * + * @param view The textview widget + * @param flag The flag to set + */ +void gnt_text_view_set_flag(GntTextView *view, GntTextViewFlag flag); + G_END_DECLS #endif /* GNT_TEXT_VIEW_H */