[fxruby-users] FXTable.setItemIcon bug?

Philippe Lang philippe.lang at attiksystem.ch
Mon Sep 25 13:54:34 EDT 2006


Hi,

There seems to be a problem with FXTable.setItemIcon, if no other icon has been set before:

    @table.connect(SEL_CLICKED) do |sender, selector, data|
        @table.setItemIcon(data.row, data.col, tick)
    end

.. Does a SEGFAULT when I click. But:

    @table.setItemIcon(2, 2, tick)
    
    @table.connect(SEL_CLICKED) do |sender, selector, data|
        @table.setItemIcon(data.row, data.col, tick)
    end

... Does not, wherever I click.

One more thing:

    @table.setItemIcon(2, 2, tick)
    @table.setItemIcon(2, 2, nil)
    
    @table.connect(SEL_CLICKED) do |sender, selector, data|
        @table.setItemIcon(data.row, data.col, tick)
    end

... SEGFAULTs too.

I'm not sure if that's an FXRuby or FOX effect...

Cheers,

Note: I'm using FXRuby 1.6.2 for Ruby 1.8.4 .exe under Windows XP.

---------------
Philippe Lang
Attik System

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3125 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/fxruby-users/attachments/20060925/51939ddd/attachment.bin 


More information about the fxruby-users mailing list