Re: GTK_WINDOW(NULL) (WAS: more patches)



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]