ruby-****@sourc*****
ruby-****@sourc*****
2012年 11月 29日 (木) 03:46:14 JST
------------------------- REMOTE_ADDR = 184.145.80.128 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-dnd-intro ------------------------- @@ -44,6 +44,13 @@ # Gtk::TreeView#enable_model_drag_source(start_button_mask, targets, actions) treeview.enable_model_drag_source(Gdk::Window::BUTTON1_MASK, TVDND_TARGETS, TVDND_ACTIONS) + # Gtk::IconView#enable_model_drag_source(start_button_mask, targets, actions) + enable_model_drag_source( + start_button_mask = Gdk::Window::BUTTON1_MASK, + targets = [], + actions = DND_ACTION + ) + and a less involved: