Joao Pedrosa
2005-Nov-30 20:30 UTC
No matching function for overloaded ''wxWindow_GetTextExtent'' on Linux
Hi guys, I get this error when I try to edit an item in the grid: dewd@marieta:/mnt/workspace/tpl_src/src/wxruby2/samples/etc$ ruby system_settings.rb Our Initialize was called Their Initialize returned 1 system_settings.rb:245:in `get_text_extent'': No matching function for overloaded ''wxWindow_GetTextExtent'' (ArgumentError) from system_settings.rb:245 I have been getting this consistently on Ubuntu Breezy, wxRuby2 from CVS and Darcs (I tested both just in case :-). wxWidgets is 2.6.2. GTK+ 2.8.6. Any idea? Thanks. Cheers, Joao _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
Alex Fenton
2005-Nov-30 20:37 UTC
[Wxruby-users] No matching function for overloaded ''wxWindow_GetTextExtent'' on Linux
Hi Joao This is a known issue - there''s currently a problem with the SWIG mapping of some Wx methods that should return multiple values to ruby (as Wx::Window#get_text_extent) Unfortunately Wx::Grid calls this method by default when you start editing a grid cell item (all platforms). So Wx::Grid crashes for now in CVS HEAD - but it''s something that should be fixed before too long. cheers alex Joao Pedrosa wrote:> Hi guys, > > I get this error when I try to edit an item in the grid: > > dewd at marieta:/mnt/workspace/tpl_src/src/wxruby2/samples/etc$ ruby > system_settings.rb > Our Initialize was called > Their Initialize returned 1 > system_settings.rb:245:in `get_text_extent'': No matching function for > overloaded ''wxWindow_GetTextExtent'' (ArgumentError) > from system_settings.rb:245 > > I have been getting this consistently on Ubuntu Breezy, wxRuby2 from > CVS and Darcs (I tested both just in case :-). > > wxWidgets is 2.6.2. > GTK+ 2.8.6. > > Any idea? > > Thanks. > > Cheers, > Joao > >------------------------------------------------------------------------ > >_______________________________________________ >wxruby-users mailing list >wxruby-users at rubyforge.org >http://rubyforge.org/mailman/listinfo/wxruby-users > >