Re: multiple-item drag-and-drop




On Sep 3, 2007, at 11:09 AM, Jeffrey Ratcliffe wrote:

I thought something like that and looked long and hard at them. But
the answer seems to be the order of:

$slist -> set_reorderable( TRUE );
$slist->drag_source_set('button1-mask', ['copy', 'move'], $target_entry); $slist->drag_dest_set(['motion', 'highlight'], ['copy', 'move'], $target_entry);

i.e. set_reorderable( TRUE ); MUST be called before both
drag_source_set and drag_dest_set.

Bizarre. Is this a bug or a feature?

gtk_tree_view_set_reorderable() with TRUE winds up calling gtk_tree_view_enable_model_drag_source() and gtk_tree_view_enable_model_drag_dest(), which call gtk_drag_source_set () and gtk_drag_dest_set(). So this looks like it's just a side effect of implementation details.


--
The one difference between Dali and a crazy man is very simple: Dali is not crazy at all.
  -- Salvador Dali





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]