Re: padding to class structures
- From: James Henstridge <james daa com au>
- To: George <jirka 5z com>
- Cc: Gnome2 <gnome-2-0-list gnome org>
- Subject: Re: padding to class structures
- Date: Mon, 22 Oct 2001 11:14:51 +1000
George wrote:
I was talking to anders and realized that we may want to add signals and/or
virtual methods in the future to widgets, and it'd be nice to do so without
breaking binary compatibility. So the idea would be to add padding to all
the (non-deprecated) class structures in libgnome/libgnomeui for this. This
doesn't take up much memory since there is only once class structure per
class so that's not an issue.
But it does break bin-compat a bit now. Though looking at the schedule we
can still do this correct? It would only break bincompat for people who
derive the widgets, so I don't think it'd even be such a problem.
If I don't hear back within a day or two, I'll commit it.
Note that for signals that don't require a class implementation (eg.
ones used purely for notification), you don't need a slot in the class
structure at all -- you can just pass NULL for the class closure (or 0
as the signal offset). It is still possible to connect to the signal
and everything.
James.
--
Email: james daa com au
WWW: http://www.daa.com.au/~james/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]