On Sun, Feb 23, 2003 at 06:59:32PM +0900, Masao Mutoh wrote:
> > 1) The first question was not asking which signal I could use.  I already 
> > know that "button_press_event" works.  I want to know which entry was 
> > clicked.  Here is an example:
> > Suppose that I make a tree with the entries "Jeffrey", "Melissa" and 
> > "Sandy".  I want to know whether the user clicked on "Jeffrey" or whether 
> > he clicked on "Melissa" or "Sandy".
> 
> Gtk::TreeSelection#selected ?
> 
>       tree_view.signal_connect('cursor-changed') do |e|
>         iter = tree_view.selection.selected
>       end

I've been trying to Gtk::TreeSelection this all weekend.  I doesn't work.  
Try it!


-- 
Daniel Carrera
Graduate Teaching Assistant.  Math Dept.
University of Maryland.  (301) 405-5137