Re: NULL text entries?
- From: Havoc Pennington <hp redhat com>
- To: "David J. Topper" <topper virginia edu>
- Cc: gtk-list gnome org
- Subject: Re: NULL text entries?
- Date: 15 Nov 2001 00:18:22 -0500
"David J. Topper" <topper virginia edu> writes:
>
> I'm trying to set up text entry boxes that are empty. Unfortunately,
> when I create one as such, I get the following error:
>
> Gtk-CRITICAL **: file gtkentry.c: line 398 (gtk_entry_set_text):
> assertion `text != NULL' failed.
>
> It's not a show stopper, but I'd rather avoid it.
>
> Isn't there a way to create text entry with nothing in it? I mean,
> besides the quick hack of stashing " " in there.
>
How about using ""? That's the intended method - an empty string. NULL
is different, it's not a string at all.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]