Re: GTK_WINDOW(NULL) (WAS: more patches)
- From: Havoc Pennington <hp redhat com>
- To: Dan Winship <danw ximian com>
- Cc: Owen Taylor <otaylor redhat com>, gtk-devel-list gnome org
- Subject: Re: GTK_WINDOW(NULL) (WAS: more patches)
- Date: 04 Mar 2001 13:11:48 -0500
Dan Winship <danw ximian com> writes:
> There's certainly code (in other libraries if not gtk itself) that
> assumes that
>
> g_return_if_fail (GTK_IS_FOO (bar));
>
> is going to trap the case of "bar == NULL".
I don't think Owen's suggesting changing the IS_FOO() macros, just the
cast macros.
> (I think the change *is* a good idea (I've used C-style casts instead of
> GTK-style to get around the NULL problem before too), but it's not 100%
> transparent.)
>
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]