comparison dwt/dnd/TableDropTargetEffect.d @ 240:ce446666f5a2

Update to SWT 3.4M7
author Frank Benoit <benoit@tionex.de>
date Mon, 12 May 2008 19:13:01 +0200
parents f2e04420fd6c
children c0d810de7093
comparison
equal deleted inserted replaced
239:06a1f6829310 240:ce446666f5a2
108 * @see DropTargetEvent 108 * @see DropTargetEvent
109 */ 109 */
110 public override void dragLeave(DropTargetEvent event) { 110 public override void dragLeave(DropTargetEvent event) {
111 Table table = cast(Table) control; 111 Table table = cast(Table) control;
112 auto handle = table.handle; 112 auto handle = table.handle;
113 OS.gtk_tree_view_unset_rows_drag_dest(handle); 113 OS.gtk_tree_view_set_drag_dest_row(handle, null, OS.GTK_TREE_VIEW_DROP_BEFORE);
114 114
115 scrollBeginTime = 0; 115 scrollBeginTime = 0;
116 scrollIndex = -1; 116 scrollIndex = -1;
117 } 117 }
118 118
179 //if ((effect & DND.FEEDBACK_INSERT_BEFORE) !is 0) position = OS.GTK_TREE_VIEW_DROP_BEFORE; 179 //if ((effect & DND.FEEDBACK_INSERT_BEFORE) !is 0) position = OS.GTK_TREE_VIEW_DROP_BEFORE;
180 //if ((effect & DND.FEEDBACK_INSERT_AFTER) !is 0) position = OS.GTK_TREE_VIEW_DROP_AFTER; 180 //if ((effect & DND.FEEDBACK_INSERT_AFTER) !is 0) position = OS.GTK_TREE_VIEW_DROP_AFTER;
181 if (position !is 0) { 181 if (position !is 0) {
182 OS.gtk_tree_view_set_drag_dest_row(handle, path, OS.GTK_TREE_VIEW_DROP_INTO_OR_BEFORE); 182 OS.gtk_tree_view_set_drag_dest_row(handle, path, OS.GTK_TREE_VIEW_DROP_INTO_OR_BEFORE);
183 } else { 183 } else {
184 OS.gtk_tree_view_unset_rows_drag_dest(handle); 184 OS.gtk_tree_view_set_drag_dest_row(handle, null, OS.GTK_TREE_VIEW_DROP_BEFORE);
185 } 185 }
186 } else { 186 } else {
187 OS.gtk_tree_view_unset_rows_drag_dest(handle); 187 OS.gtk_tree_view_set_drag_dest_row(handle, null, OS.GTK_TREE_VIEW_DROP_BEFORE);
188 } 188 }
189 if (path !is null) OS.gtk_tree_path_free (path ); 189 if (path !is null) OS.gtk_tree_path_free (path );
190 } 190 }
191 } 191 }