macro IS_xxx

2007-06-24 Thread Andrea Zagli
i have GObject A and GObject B; B is a A's subclass obj_a = a_new (); obj_b = b_new (); (a_new() and b_new() return GObject) when i call IS_OBJECT_A (obj_b) it returns TRUE: why? is it a bug? or is it normal? or am i mistaking something? ___

Re: macro IS_xxx

2007-06-24 Thread Yeti
On Sun, Jun 24, 2007 at 09:48:01AM +0200, Andrea Zagli wrote: i have GObject A and GObject B; B is a A's subclass obj_a = a_new (); obj_b = b_new (); (a_new() and b_new() return GObject) when i call IS_OBJECT_A (obj_b) it returns TRUE: why? Because obj_b *is* also an instance of A.

Re: macro IS_xxx

2007-06-24 Thread Andrea Zagli
Il giorno dom, 24/06/2007 alle 10.32 +0200, David Nečas (Yeti) ha scritto: On Sun, Jun 24, 2007 at 09:48:01AM +0200, Andrea Zagli wrote: i have GObject A and GObject B; B is a A's subclass obj_a = a_new (); obj_b = b_new (); (a_new() and b_new() return GObject) when i call

Re: macro IS_xxx

2007-06-24 Thread Paul Pogonyshev
Andrea Zagli wrote: i have GObject A and GObject B; B is a A's subclass obj_a = a_new (); obj_b = b_new (); (a_new() and b_new() return GObject) when i call IS_OBJECT_A (obj_b) it returns TRUE: why? is it a bug? or is it normal? or am i mistaking something? It is doing what it

Re: macro IS_xxx

2007-06-24 Thread Chris Vine
On Sun, 2007-06-24 at 11:34 +0200, Andrea Zagli wrote: Il giorno dom, 24/06/2007 alle 10.32 +0200, David Nečas (Yeti) ha scritto: On Sun, Jun 24, 2007 at 09:48:01AM +0200, Andrea Zagli wrote: i have GObject A and GObject B; B is a A's subclass obj_a = a_new (); obj_b = b_new ();