In mail "[ruby-talk:6826] Gtk::CTree and callback?"
    cjon / sapphire.engin.umich.edu (Cullen J O'neill) wrote:

> I'm having trouble figuring out how to set up a callback
> for an item in a Ctree, it seems to work totally differently
> from the Gtk::Tree class.  Does anyone have a pointer or 
> suggestion for how to find out?

It is impossible to set for an item because it is not a GtkObject.
But you can set up a callback for a tree.

ctree.signal_connect( 'selected' ) do |widget, row, col, event|
  if row == target then
    .....
  end
end
         or

ctree.set_row_data target_row, ident
ctree.signal_connect( 'selected' ) do |widget, row, col, event|
  if widget.get_row_data == ident then
    .....
  end
end


I'd often used later one.

Minero Aoki