Joel VanderWerf
2006-Mar-27 23:00 UTC
[fxruby-users] FXMenuBar.new(self) raises ArgumentError
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... -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407
Lyle Johnson
2006-Mar-28 01:32 UTC
[fxruby-users] FXMenuBar.new(self) raises ArgumentError
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).