Re: multiple widget inheritance



Currently the GtkObject system does not handle multiple inheritence very
well.  There have been a number of hacks, such as the activate interface
and the set_scroll_adjustments interface though.

You may be able to do this by creating a few signals for each widget, and
making a few functions that simply call gtk_signal_emit_by_name to make up
the common interface.

James.

--
Email: james@daa.com.au
WWW:   http://www.daa.com.au/~james/


On Wed, 8 Jul 1998, Rodrigo Moya wrote:

> Hi all!
> 
> I am making a library of data-bound widgets, and right now each widget
> is a subclass of a different GTK/GNOME widget class (GtkVBox,
> GnomeDialog, GtkEntry...). But I would like to have a base class for all
> of these widgets for common properties and signals. Is there any way of
> having all widget classes subclassing this base class, and then each of
> them subclassing another GTK/GNOME class without losing the
> object-oriented design? I guess there isn't, but I ask just in case
> somebody has found a good way of doing it.
> 
> Cheers
> 
> 
> -- 
> To unsubscribe: mail gnome-devel-list-request@gnome.org with "unsubscribe"
> as the Subject.
> 



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