Re: Overriding iface implementations
- From: Owen Taylor <otaylor redhat com>
- To: Federico Mena Quintero <federico ximian com>
- Cc: GTK+ development mailing list <gtk-devel-list gnome org>
- Subject: Re: Overriding iface implementations
- Date: Wed, 25 Feb 2004 10:03:06 -0500
On Tue, 2004-02-24 at 22:29, Federico Mena Quintero wrote:
> Say I have an instantiated object which I know supports a certain
> interface. I'd like to override the object's implementation of one of
> that interface's methods. Is this possible?
>
> Namely, the file chooser uses a GtkListStore for the shortcuts list. I
> want to make just the bookmarks part reorderable, so I need to override
> ::row_draggable on the source side, and ::row_drop_possible on the
> destination side.
>
> Any ideas on how to do this?
You just add the interface again and set the functions you want
and don't set the others. g_type_interface_peek_parent() can
be used to chain up.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]