Re: [Java-gnome-developer] Potential API issue with Table.attach() & AttachOptions?
Brought to you by:
afcowie
From: Andrew C. <an...@op...> - 2009-03-19 22:16:21
|
On Thu, 2009-03-19 at 21:39 +0100, Stefan Prelle wrote: > Interesting. I admit I wasn't aware of the fact that you could combine > the options. > I guess that the "ordinal" parameter should be the integer ... You guys are completely off in left field. :) The bug is simple: whoever exposed AttachOptions did so incorrectly. GtkAttachOptions is a (define-flag) and our binding has it as a Constant, not as a Flags. Fixed. If you need to OR them use the strongly typed or() function, just like any other Flags subclass. Code is at 'hackers/andrew/bug-attach-is-flag'. If one of you try that branch and write a unit test to ensure its behaviour, we can merge it to 'mainline'. See ValidateConstants's testFlagsHandling() if you need some ideas. As this is API and library design discussion, follow-ups to java-gnome-hackers, please. AfC Sydney |