Re: Bad assertions in GtkEntry
- From: Owen Taylor <owt1 cornell edu>
 
- To: gtk-list redhat com
 
- Subject: Re: Bad assertions in GtkEntry
 
- Date: 23 Mar 1998 11:50:11 -0500
 
"Steve O'CONNOR" <soconnor@baea.com.au> writes:
> I noticed looking thought the GtkEntry code that there a quite a few
> functions that have things like this
> 
> /* -------------- start of example --- */
> gtk_entry_some_sort_of_function (GtkWidget *widget, ...)
> {
>    GtkEntry *entry;
> 
>    g_return_if_fail (entry != NULL);
>    .. rest of code
> /* ------- end of example ---- */
> 
> The assertion generally passes, because the un-initialized value of entry
> is != NULL, but I am sure this is not what the author intended.
I believe these all have been fixed now. If they aren't in 0.99.8,
they will be in the next release. (They were remnants of changing
a lot of functions from taking an Entry as a parameter to taking
a Editable.)
Regards,
                                        Owen
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]