diff options
author | Owen Taylor <owt1@cornell.edu> | 1998-03-23 06:27:31 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1998-03-23 06:27:31 +0000 |
commit | 923f3f6992154acda20cd0ca21e23f4ec6d697cd (patch) | |
tree | 71e8c7e887f7cb8cd3f8f902f4cd8a5d81221fc6 /gtk/gtktext.h | |
parent | f0f650948ad1bd2b5b9fb9ef537dd95f84368e7f (diff) | |
download | gtk+-923f3f6992154acda20cd0ca21e23f4ec6d697cd.tar.gz |
Added optional word wrap, controlled by new function
Mon Mar 23 01:04:51 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtktext.[ch] testgtk.c: Added optional word wrap, controlled
by new function gtk_text_set_word_wrap; and a check button
in the Text test.
* gtk/gtktext.c: First line wasn't getting updated
properly when selection was removed.
Diffstat (limited to 'gtk/gtktext.h')
-rw-r--r-- | gtk/gtktext.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtktext.h b/gtk/gtktext.h index 82aa25e7ab..12ca037bed 100644 --- a/gtk/gtktext.h +++ b/gtk/gtktext.h @@ -103,6 +103,7 @@ struct _GtkText guint line_wrap : 1; /* Frozen, don't do updates. @@@ fixme */ guint freeze : 1; + guint word_wrap : 1; /* TEXT PROPERTIES */ @@ -161,6 +162,8 @@ GtkWidget* gtk_text_new (GtkAdjustment *hadj, GtkAdjustment *vadj); void gtk_text_set_editable (GtkText *text, gint editable); +void gtk_text_set_word_wrap (GtkText *text, + gint word_wrap); void gtk_text_set_adjustments (GtkText *text, GtkAdjustment *hadj, GtkAdjustment *vadj); |