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

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2012年 12月 17日 (月) 12:04:30 JST


-------------------------
REMOTE_ADDR = 184.145.81.223
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-dnd-native-treev
-------------------------
@@ -140,7 +140,8 @@
 # (10.3.2)
 === DnD Tree View Items
 
-The Gtk::TreeView widget is one of those widgets where dragged and dropped objects are strictly the items belonging to some particular data structures and/or hierarchies and must be of a rather particular format, namely, the rows of predetermined sets of columns stored in related data models or data stores. This particularity about data structure and format is best met if dragging and dropping occurs within the same widget, i.e. you should always be able to drag one row within a list or a tree view to a new location, as long as the drop occurs in the same widget in which the drag also started. Currently this is even more true for a generic Gtk library, used by languages like Ruby, Python and alike, than is for the original GTK+ C and C++ (a.k.a. gtkmm) implementations. Namely, the original C GTK+ implementation allows you to drag rows of data from one list/tree view to another, i.e. in GTK+ you are not limited to the single widget, as you are in Ruby or Python when using Gtk
 +.
+Another widget, that requires almost no programming effort to activate native drag-and-drop features is Gtk::TreeView. Besides, this widget is one of those, where dragged and dropped objects are strictly the items belonging to some particular data structures and/or hierarchies and must be of a rather particular format, namely, the rows of predetermined sets of columns stored in related data models or data stores. This particularity about data structure and format is best met if dragging and dropping occurs within the same widget, i.e. you should always be able to drag one row within a list or a tree view to a new location, as long as the drop occurs in the same widget in which the drag also started. Currently this is even more true for a generic Gtk library, used by languages like Ruby, Python and alike, than is for the original GTK+ C and C++ (a.k.a. gtkmm) implementations. Namely, the original C GTK+ implementation allows you to drag rows of data from one list/tree view to
  another, i.e. in GTK+ you are not limited to the single widget, as you are in Ruby or Python when using Gtk+.
+
 
 When using DnD mechanism to move around rows within single tree or list view, you are actually employing the native DnD facilities. We will look at these next.
 




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