diff options
author | Owen Taylor <otaylor@redhat.com> | 1999-02-16 04:52:21 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1999-02-16 04:52:21 +0000 |
commit | bf39d4cda92b993104e9d6447a32c94c75427f11 (patch) | |
tree | 908c22a4208286c8491b144b311c7ba6c3248fa2 /gtk/gtktext.c | |
parent | fd2c0c5651ced62c6c235629ee0dcc9cb5d154f2 (diff) | |
download | gtk+-bf39d4cda92b993104e9d6447a32c94c75427f11.tar.gz |
Use a ScrolledWindow test how Text widgets work within ScrolledWindow.
Mon Feb 15 23:55:27 1999 Owen Taylor <otaylor@redhat.com>
* gtk/testgtk.c (create_text): Use a ScrolledWindow
test how Text widgets work within ScrolledWindow.
(POLICY_AUTOMATIC drew very badly, so it uses
POLICY_ALWAYS for the vscrollbar)
* gtk/gtktext.c (gtk_text_unrealize): Free the cache
in the unrealize handler. Some code in gtktext.c
assumes that if text->line_start_cache is non-NULL,
the widget is realized. We'll recompute it again
anyways if we later re-realize.
Diffstat (limited to 'gtk/gtktext.c')
-rw-r--r-- | gtk/gtktext.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtktext.c b/gtk/gtktext.c index c304326c35..6e02d0b792 100644 --- a/gtk/gtktext.c +++ b/gtk/gtktext.c @@ -1225,7 +1225,6 @@ gtk_text_finalize (GtkObject *object) g_free (text->text.wc); else g_free (text->text.ch); - free_cache (text); tmp_list = text->text_properties; while (tmp_list) @@ -1470,6 +1469,8 @@ gtk_text_unrealize (GtkWidget *widget) unrealize_properties (text); + free_cache (text); + if (GTK_WIDGET_CLASS (parent_class)->unrealize) (* GTK_WIDGET_CLASS (parent_class)->unrealize) (widget); } |