Re: how are interfaces created? (talking about the Java-like "interface")
- From: Ben Johnson <ben blarg net>
- To: Ben Johnson <ben blarg net>
- Cc: gtk-list gnome org
- Subject: Re: how are interfaces created? (talking about the Java-like "interface")
- Date: Sat, 29 Jan 2005 12:29:45 -0800
On Sat, Jan 29, 2005 at 12:03:59PM -0800, Ben Johnson wrote:
...
> gathered that an object of GnomeCanvasGroupExtClass is by definition
> also a G_TYPE_PRINTABLE. In the code you just posted...
>
> > if (GNOME_IS_CANVAS_GROUP_EXT(item))
> > gnome_canvas_group_ext_print (G_PRINTABLE (item), pc);
> > else if (G_IS_PRINTABLE (item))
> > {
>
> I'm assuming that GNOME_IS_CANVAS_GROUP_EXT(item) tests to see if item
> is an object of the GnomeCanvasGroupExtClass class and G_IS_PRINTABLE()
> tests to see if item is a G_TYPE_PRINTABLE. If one is true, isn't the
> other?
hrm. I guess the idea is that not all the list items are necessarily
CANVAS_GROUP_EXT types, but some of those may be PRINTABLE. I get it.
never mind.
- Ben
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]