FxRuby

I found and download FxRuby 1.0.10, succesfully compiled with fox
1.0.11 on Debian Potato. But running example table.rb ends with error.

tabbook.rb in tab FileList I can't go into directories
table.rb one doubleclick in column headers causes:

radek@kvark:~/work/FXRuby-1.0.10/examples$ ruby table.rb
libpng warning: Application was compiled with png.h from libpng-1.0.12
libpng warning: Application is running with png.c from libpng-1.2.1
libpng error: Incompatible libpng version in application and library
SEL_CLICKED ptr=#<Fox::FXTablePos:0x40f6607c>
SEL_COMMAND ptr=#<Fox::FXTablePos:0x40f6602c>
SEL_CHANGED row=0, col=4
table.rb:96:in `initialize': undefined method `row' for

#<Fox::FXTableRange:0x40f65eec> (NameError)

        from table.rb:95:in `call'
        from /home/radek/lib/ruby/fox/responder2.rb:29:in `onHandleMsg'
        from table.rb:220:in `run'
        from table.rb:220
/home/radek/lib/ruby/fox/responder2.rb:29: [BUG] Segmentation fault
ruby 1.6.7 (2002-03-19) [i386-linux]
Neúspì¹nì ukonèen (SIGABRT)

The FXFileList widget that's shown in the tabbook.rb example is, by itself,
not a very "smart" widget; it just shows the contents of whatever directory
you set it to, but it doesn't know how to respond (for example) when you
double-click on one of the folders. So what you're seeing for the tabbook's
FXFileList is not a bug, that's just the limit of what a plain old
FXFileList widget can do. Other, "smarter", widgets can make use of
FXFileList as a building block. In particular, the FXFileSelector uses an
FXFileList but it knows to change directories when you double-click on one
of the folders.

The problem you're seeing with the table.rb example is a bug that's been
fixed in the CVS. I hope to get out a bug-fix release for FXRuby in the next
day or so.

- Where can I get the latest CVS? Checking out the sourceforge gives
me something which seems to be old.

You need to check out the 'release10' branch:

    cvs checkout -rrelease10 FXRuby

The main trunk is where I've started doing some things in preparation for
the development version of FOX (fox-1.1.x) but that's not usable yet.

- Which version of foxgui and ruby are better for FxRuby?

For FOX, just get the latest fox-1.0.x release (currently fox-1.0.11, I
think). Do *not* try to compile FXRuby against the fox-1.1.x sources. As for
Ruby, just use one of the 1.6 or 1.7 releases -- it should work fine with
either.