Re: GtkImage changes
- From: Havoc Pennington <hp redhat com>
- To: Darin Adler <darin eazel com>
- Cc: <gtk-devel-list gnome org>
- Subject: Re: GtkImage changes
- Date: 28 Jun 2000 20:41:04 -0400
Darin Adler <darin@eazel.com> writes:
> I'm referring to the case where you want to temporarily change the image and
> then change it back; the need to save and then later restore. Perhaps this
> is not a common thing to want to do, as I said, but I find that this sort of
> thing does come up in many other contexts.
>
Hopefully in this case you'd use the same image format for both
(pixbuf both times for example), that seems sensible.
> I'm not talking about checking for NULL, I'm talking about checking the
> object, like this for something that can take a NULL or a valid pixmap.
>
> g_return_if_fail (pixmap == NULL || GDK_IS_PIXMAP (pixmap));
>
> I thought this sort of checking was de rigeur in Gtk.
>
Oh, right. I just didn't think to do the check that way, I just
dropped the checks since I was accepting NULL. Will do.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]