Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
3fc95408
Commit
3fc95408
authored
Feb 27, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx gui playlist: allow drag & drop to the media library
parent
818a663e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
modules/gui/macosx/playlist.m
modules/gui/macosx/playlist.m
+8
-8
No files found.
modules/gui/macosx/playlist.m
View file @
3fc95408
...
...
@@ -168,10 +168,7 @@
i_return
=
p_item
->
i_children
;
vlc_object_release
(
p_playlist
);
if
(
i_return
<=
0
)
i_return
=
0
;
return
i_return
;
return
i_return
>
0
?
i_return
:
0
;
}
/* return the child at index for the Obj-C pointer item */
/* DONE */
...
...
@@ -1405,7 +1402,10 @@
/* Refuse to move items that are not in the General Node
(Service Discovery) */
if
(
!
[
self
isItem
:
[
o_item
pointerValue
]
inNode
:
p_playlist
->
p_local_category
checkItemExistence
:
NO
])
p_playlist
->
p_local_category
checkItemExistence
:
NO
]
&&
(
var_CreateGetBool
(
p_playlist
,
"media-library"
)
&&
!
[
self
isItem
:
[
o_item
pointerValue
]
inNode
:
p_playlist
->
p_ml_category
checkItemExistence
:
NO
])
)
{
vlc_object_release
(
p_playlist
);
return
NO
;
...
...
@@ -1461,8 +1461,8 @@
/* We refuse to drop an item in anything else than a child of the General
Node. We still accept items that would be root nodes of the outlineview
however, to allow drop in an empty playlist. */
if
(
!
(
[
self
isItem
:
[
item
pointerValue
]
inNode
:
p_playlist
->
p_local_category
checkItemExistence:
NO
]
||
item
==
nil
)
)
if
(
!
(
([
self
isItem
:
[
item
pointerValue
]
inNode
:
p_playlist
->
p_local_category
checkItemExistence
:
NO
]
||
(
var_CreateGetBool
(
p_playlist
,
"media-library"
)
&&
[
self
isItem
:
[
item
pointerValue
]
inNode
:
p_playlist
->
p_ml_category
checkItemExistence
:
NO
]
)
)
||
item
==
nil
)
)
{
vlc_object_release
(
p_playlist
);
return
NSDragOperationNone
;
...
...
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