Re: GtkLayout redundant fields ...



On 26 Oct 2001, Murray Cumming wrote:

> On Fri, 2001-10-26 at 18:43, Owen Taylor wrote:
> > 
> > Michael Meeks <michael ximian com> writes:
> > 
> > > 	It seems GtkLayout's xoffset and yoffset are cruft left from the
> > > old layout methodology.
> > 
> > Actually, I left them for backwards compatibility, since a lot
> > of code was accessing these fields. Good idea? I don't know,
> > but I'm inclined to leave it that way at this point.

hm, i get reminded of GtkButton.chiild ;)

> I noticed this too. It doesn't seem like much compatibility is being
> retained as using these fields doesn't seem to have any effect. At the
> least, there should be comments by them saying that they are not used.

owen, can't we just get rid of unused fields and have the compiler
spot it for people?

---
ciaoTJ




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