Re: [Gegl-developer] my design notes on the class list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sven Neumann wrote:
GTypeInterface* foo=g_type_interface_peek(instance_class,iface_type);
MyIterface* default_interface_impl = g_object_new(foo, . . .);


No, I don't think you can create an object using an interface type.

you are right (and to use a californiaism: duh!) however, my point still stands. You can chainup using the interface, and you can get the parent implementation to chain up to using g_type_interface_peek_parent.

--
Dan


[Index of Archives]     [Yosemite News]     [Yosemite Photos]     [gtk]     [GIMP Users]     [KDE]     [Gimp's Home]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux