Re: overwriting classes



On Thu, Jun 17, 2004 at 08:02:48AM +0200, joel krähemann wrote:
Paul, you mean I should copy the functions of parent
classes that I overwrite and save it in my own
object's class?

There's no need to, just call (e.g. for destroy)

    GTK_OBJECT_CLASS(parent_class)->destroy(object);

in destroy method of your type, where parent_class you
obtained

    parent_class = g_type_class_peek_parent(klass);

in class init function.

Yeti


--
Do not use tab characters. Their effect is not predictable.



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