Remove some very useful drag stuff that doesn't seem to yet have an equivalalent in the new treeveiw
This commit is contained in:
parent
0e5667e28e
commit
5b457faf5f
|
@ -272,7 +272,7 @@ void ami_tree_drag_icon_show(struct treeview_window *twin)
|
||||||
|
|
||||||
if((twin->type == AMI_TREE_COOKIES) ||
|
if((twin->type == AMI_TREE_COOKIES) ||
|
||||||
(twin->type == AMI_TREE_SSLCERT)) return; /* No permissable drag operations */
|
(twin->type == AMI_TREE_SSLCERT)) return; /* No permissable drag operations */
|
||||||
|
#if 0
|
||||||
node = tree_get_selected_node(tree_get_root(twin->tree));
|
node = tree_get_selected_node(tree_get_root(twin->tree));
|
||||||
|
|
||||||
if(node && tree_node_is_folder(node))
|
if(node && tree_node_is_folder(node))
|
||||||
|
@ -294,6 +294,7 @@ void ami_tree_drag_icon_show(struct treeview_window *twin)
|
||||||
}
|
}
|
||||||
ami_drag_icon_show(twin->win, type);
|
ami_drag_icon_show(twin->win, type);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void ami_tree_drag_end(struct treeview_window *twin, int x, int y)
|
void ami_tree_drag_end(struct treeview_window *twin, int x, int y)
|
||||||
|
@ -304,7 +305,7 @@ void ami_tree_drag_end(struct treeview_window *twin, int x, int y)
|
||||||
BOOL drag;
|
BOOL drag;
|
||||||
|
|
||||||
if(drag = ami_drag_in_progress()) ami_drag_icon_close(twin->win);
|
if(drag = ami_drag_in_progress()) ami_drag_icon_close(twin->win);
|
||||||
|
#if 0
|
||||||
if(drag && (twin != ami_window_at_pointer(AMINS_TVWINDOW)))
|
if(drag && (twin != ami_window_at_pointer(AMINS_TVWINDOW)))
|
||||||
{
|
{
|
||||||
selected_node = tree_get_selected_node(tree_get_root(twin->tree));
|
selected_node = tree_get_selected_node(tree_get_root(twin->tree));
|
||||||
|
@ -349,6 +350,7 @@ void ami_tree_drag_end(struct treeview_window *twin, int x, int y)
|
||||||
twin->drag_x, twin->drag_y); /* Keep the tree happy */
|
twin->drag_x, twin->drag_y); /* Keep the tree happy */
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
if(tree_drag_status(twin->tree) == TREE_UNKNOWN_DRAG)
|
if(tree_drag_status(twin->tree) == TREE_UNKNOWN_DRAG)
|
||||||
DisplayBeep(scrn);
|
DisplayBeep(scrn);
|
||||||
|
|
Loading…
Reference in New Issue