ruby-****@sourc*****
ruby-****@sourc*****
2012年 12月 12日 (水) 12:49:39 JST
------------------------- REMOTE_ADDR = 184.145.81.223 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-dnd-intro ------------------------- @@ -857,7 +857,7 @@ end :Note: - The source dnd widget in our 'dnd-toolbar*.rb' programs do not respond to Gtk::Widget's ((*'drag-*'*))signals at all, in fact these signals do not even provide button, and events parameters, we need to register a dnd source widget! + The source dnd widget in our 'dnd-toolbar*.rb' programs does not respond to Gtk::Widget's ((*'drag-*'*))signals at all, in fact these signals do not even provide button, and events parameters, we need to register a dnd source widget! Lastly, we use source widget (placeholder frame) as an argument (htbframe=/horizontal toolbar frame/) when we invoke the 'set_dnd_source_frame_widget (htbframe)' instance method, or as a parameter in this method definition, rather than an instance variable. The same is true for 'set_dnd_destination_frame_widget (htbframe, vtbframe)' instance method and its arguments and parameters. But the explanation of this should wait until you see, that both of these two 'set_dnd_*' methods are also called in a pseudo recursive call when the((*'drag-drop'*))signal is emitted and caught by the destination frame. And this (setting and managing the destination frame) is what we'll look at next.