[ruby-gnome2-doc-cvs] [Hiki] create - tut-treeview-selection-doubleclick

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2003年 11月 20日 (木) 00:59:15 JST


-------------------------
REMOTE_ADDR = 208.197.227.51
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/?tut-treeview-selection-doubleclick
-------------------------
= Double-Clicks on a Row

Catching double-clicks on a row is quite easy and is done by connecting to a tree view's "row-activated" signal, like this:

  view.signal_connect("row-activated") do |view, path, column|
    puts "Row #{path.to_str} was clicked!"

    if iter = view.model.get_iter(path)
      puts "Double-clicked row contains name #{iter[0]}!"
    end
  end
    







ruby-gnome2-cvs メーリングリストの案内
Back to archive index