[fxruby-users] FXMenuBar.new(self) raises ArgumentError
Lyle Johnson
lyle at knology.net
Mon Mar 27 20:32:35 EST 2006
On Mar 27, 2006, at 5:00 PM, Joel VanderWerf wrote:
>
> I've been away from FXRuby code for a while, and was surprised that
>
> mb = FXMenuBar.new(self)
>
> which used to work (in 1.2 I guess) now in 1.4 causes this:
>
> No matching function for overloaded 'new_FXMenuBar' (ArgumentError)
>
> It was easily fixed with:
>
> mb = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X)
>
> But it seems like FXMenuBar.new should have a default that works. Not a
> big issue though...
That changed in FOX 1.4, although I don't know the reasoning for the
change. I made the same change in FXRuby to keep the APIs consistent,
but I agree that I should have provided for some kind of backwards
compatibility there (even if FOX didn't).
More information about the fxruby-users
mailing list