diff options
author | Miguel de Icaza <miguel@helixcode.com> | 2000-12-26 06:06:45 +0800 |
---|---|---|
committer | Miguel de Icaza <miguel@src.gnome.org> | 2000-12-26 06:06:45 +0800 |
commit | b3e9bc2921eacac30e81406bab99ee8fe8e74c26 (patch) | |
tree | cc8bfad16c574f8e673547c682fe5f59cc72227a /widgets/text/e-text.c | |
parent | e2ba388ffd13d05f62f694a98b23658e64683667 (diff) | |
download | gsoc2013-evolution-b3e9bc2921eacac30e81406bab99ee8fe8e74c26.tar.gz gsoc2013-evolution-b3e9bc2921eacac30e81406bab99ee8fe8e74c26.tar.zst gsoc2013-evolution-b3e9bc2921eacac30e81406bab99ee8fe8e74c26.zip |
Always have some text. Fixes crash.
2000-12-25 Miguel de Icaza <miguel@helixcode.com>
* gal/e-text/e-text.c (e_text_init): Always have some text. Fixes crash.
svn path=/trunk/; revision=7171
Diffstat (limited to 'widgets/text/e-text.c')
-rw-r--r-- | widgets/text/e-text.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c index b011a492c0..3345493ad7 100644 --- a/widgets/text/e-text.c +++ b/widgets/text/e-text.c @@ -313,10 +313,11 @@ e_text_class_init (ETextClass *klass) static void e_text_init (EText *text) { - text->text = NULL; text->model = e_text_model_new(); - gtk_object_ref(GTK_OBJECT(text->model)); - gtk_object_sink(GTK_OBJECT(text->model)); + text->text = e_text_model_get_text (text->model); + + gtk_object_ref (GTK_OBJECT(text->model)); + gtk_object_sink (GTK_OBJECT(text->model)); text->model_changed_signal_id = gtk_signal_connect(GTK_OBJECT(text->model), "changed", @@ -1014,6 +1015,7 @@ e_text_set_arg (GtkObject *object, GtkArg *arg, guint arg_id) text); e_text_free_lines(text); + text->text = e_text_model_get_text(text->model); text->needs_split_into_lines = 1; |