Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
4ab4e13b
Commit
4ab4e13b
authored
Sep 02, 2005
by
Benjamin Pracht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow to drop an item *on* a node.
parent
e8ca5bab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
14 deletions
+9
-14
modules/gui/macosx/playlist.m
modules/gui/macosx/playlist.m
+9
-14
No files found.
modules/gui/macosx/playlist.m
View file @
4ab4e13b
...
...
@@ -586,7 +586,6 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
-
(
void
)
updateRowSelection
{
// int i;
int
i_row
;
unsigned
int
j
;
...
...
@@ -786,7 +785,6 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
{
playlist_item_t
*
p_item
;
playlist_item_t
*
p_node
=
NULL
;
// int i;
p_item
=
[[
o_outline_view
itemAtRow
:[
o_outline_view
selectedRow
]]
pointerValue
];
...
...
@@ -1592,11 +1590,15 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
if
(
!
p_playlist
)
return
NSDragOperationNone
;
/* Dropping ON items is not allowed */
if
(
i
ndex
==
NSOutlineViewDropOnItemIndex
)
/* Dropping ON items is not allowed
if item is not a node
*/
if
(
i
tem
)
{
vlc_object_release
(
p_playlist
);
return
NSDragOperationNone
;
if
(
index
==
NSOutlineViewDropOnItemIndex
&&
((
playlist_item_t
*
)[
item
pointerValue
])
->
i_children
==
-
1
)
{
vlc_object_release
(
p_playlist
);
return
NSDragOperationNone
;
}
}
/* We refuse to drop an item in anything else than a child of the General
...
...
@@ -1715,14 +1717,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
/* If we move the playing item in a different node or we move the
node containing the playing item in a different node, then stop
playback, or the playlist refuses to detach the item. */
/* if( p_playlist->status.i_status != PLAYLIST_STOPPED &&
(( p_item == p_playlist->status.p_item &&
p_new_parent != p_old_parent) ||
( p_item->i_children > 0 &&
[self isItem: p_playlist->status.p_item inNode:p_item] == YES))
{
playlist_Stop( p_playlist );
}*/
vlc_mutex_lock
(
&
p_playlist
->
object_lock
);
// Acually detach the item from the old position
if
(
playlist_NodeRemoveItem
(
p_playlist
,
p_item
,
p_old_parent
)
==
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment