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

Back to archive index

ruby-gnome2-hiki-pt_BR****@sourc***** ruby-gnome2-hiki-pt_BR****@sourc*****
2004年 4月 11日 (日) 00:36:42 JST


-------------------------
REMOTE_ADDR = 200.216.145.78
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/pt_BR/?tut-treeview-selection-doubleclick
-------------------------
= Duplos-Cliques em uma Linha
{{link "tut-treeview-selection-handle", nil, "tut-treeview", "tut-treeview-selection-contextmenu"}}

Pegar duplos-cliques em uma linha bastante f當il e feito conectando a um sinal "row-activated" de "tree view", como isto:

  view.signal_connect("row-activated") do |view, path, column|
    puts "A linha #{path.to_str} foi clicada!"

    if iter = view.model.get_iter(path)
      puts "A linha em que foi clicado duas vezes cont駑 nome #{iter[0]}!"
    end
  end
    







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