[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-gtk2-dnd-intro

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2012年 11月 29日 (木) 03:33:27 JST


-------------------------
REMOTE_ADDR = 184.145.80.128
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-dnd-intro
-------------------------
@@ -70,9 +70,15 @@
        event                                       # Gdk::Event::DRAG_LEAVE
  )
 
-When you are registering a destination, you may need to provide additional flags, controlling the potential resulting action after the drop.
+When you are registering a destination, you may need to provide additional flags (Gtk::Drag::DestDefaults), controlling the potential resulting action after the drop.
 
- Gtk::Drag.dest_set(widget, flags, targets, actions)
+ Gtk::Drag.dest_set(
+   widget  = treeview, 
+   flags   = Gtk::Drag::DestDefaults::DROP, 
+   targets = TVDND_TARGETS, 
+   actions =Gdk::DragContext::ACTION_ASK
+ )
+
 
 Do not be too much concerned with all the different ways we may be using when setting up source and destination widgets. Try to emulate the examples you can find in our tutorial, they should provide enough material, to grasp the basic understanding. 
 




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