diff options
author | Tim Janik <timj@gimp.org> | 1998-02-17 08:32:55 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-02-17 08:32:55 +0000 |
commit | b5cb66dc35b0dda22d808f3b5557743a377cfbf2 (patch) | |
tree | 811db889dfcc5e8a644e113d4403aff2241e48b1 /gtk/gtkentry.c | |
parent | a3034938827c6b66ac536a19f737d64d94d60309 (diff) | |
download | gtk+-b5cb66dc35b0dda22d808f3b5557743a377cfbf2.tar.gz |
invoke gtk_entry_grow_text already in this place, so the application will
Tue Feb 17 05:41:31 1998 Tim Janik <timj@gimp.org>
* gtk/gtkentry.c (gtk_entry_init): invoke gtk_entry_grow_text already
in this place, so the application will never see entry->text==NULL.
(see also ChangeLog entry from Tue Feb 11 1997 on this).
also i added some blurb about recent changes to the NEWS file,
and updated the TODO.
Diffstat (limited to 'gtk/gtkentry.c')
-rw-r--r-- | gtk/gtkentry.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index 67850c31ca..8ba5d8454c 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -372,6 +372,8 @@ gtk_entry_init (GtkEntry *entry) ctext_atom, gtk_entry_selection_handler, NULL); + + gtk_entry_grow_text (entry); } GtkWidget* @@ -541,6 +543,7 @@ gtk_entry_finalize (GtkObject *object) if (entry->timer) gtk_timeout_remove (entry->timer); + entry->text_size = 0; if (entry->text) g_free (entry->text); entry->text = NULL; |