ruby-****@sourc*****
ruby-****@sourc*****
2012年 11月 27日 (火) 07:52:27 JST
------------------------- REMOTE_ADDR = 184.145.95.170 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-dnd-intro ------------------------- @@ -199,6 +199,14 @@ +We start the above program with a helper module used to initialize our tree view from the asci array. We have discussed this technique in chapter 8 in section 8.2.3.1 (((<Tedious Job Of Loading Multidimensional Tree Store|tut-gtk2-treev-trees#Tedious Job Of Loading Multidimensional Tree Store>))). The tree view itself is rather simple, and you should be fairly familiar with its code. The only piece of code that deserves our attention is the one that enables the dnd functionality: + + ## -- Enables automatic Drag-And-Drop in the tree view ------- + treeview.reorderable = true + +Also note that we do not need to set up any signal handlers for the dnd to function. + + # (10.2.2)