Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
c934307d
Commit
c934307d
authored
Mar 25, 2006
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* update the info panel when switching the currently played p_item
parent
9cf3ff6b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
12 deletions
+29
-12
modules/gui/macosx/playlist.m
modules/gui/macosx/playlist.m
+4
-0
modules/gui/macosx/playlistinfo.h
modules/gui/macosx/playlistinfo.h
+1
-0
modules/gui/macosx/playlistinfo.m
modules/gui/macosx/playlistinfo.m
+24
-12
No files found.
modules/gui/macosx/playlist.m
View file @
c934307d
...
...
@@ -47,6 +47,7 @@
#include "intf.h"
#import "wizard.h"
#import "bookmarks.h"
#import "playlistinfo.h"
#include "playlist.h"
#include "controls.h"
#include "vlc_osd.h"
...
...
@@ -617,6 +618,9 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
[
o_outline_view
scrollRowToVisible
:
i_row
];
vlc_object_release
(
p_playlist
);
/* update our info-panel to reflect the new item */
[[[
VLCMain
sharedInstance
]
getInfo
]
updatePanel
];
}
/* Check if p_item is a child of p_node recursively. We need to check the item
...
...
modules/gui/macosx/playlistinfo.h
View file @
c934307d
...
...
@@ -103,6 +103,7 @@
-
(
IBAction
)
togglePlaylistInfoPanel
:(
id
)
sender
;
-
(
IBAction
)
toggleInfoPanel
:(
id
)
sender
;
-
(
void
)
initPanel
:(
id
)
sender
;
-
(
void
)
updatePanel
;
-
(
IBAction
)
infoCancel
:(
id
)
sender
;
-
(
IBAction
)
infoOk
:(
id
)
sender
;
-
(
playlist_item_t
*
)
getItem
;
...
...
modules/gui/macosx/playlistinfo.m
View file @
c934307d
...
...
@@ -101,7 +101,7 @@
-
(
void
)
dealloc
{
/* make that it is released in any case */
/* make
sure
that it is released in any case */
if
(
o_statUpdateTimer
)
[
o_statUpdateTimer
release
];
[
super
dealloc
];
...
...
@@ -149,6 +149,11 @@
[
o_statUpdateTimer
fire
];
[
o_statUpdateTimer
retain
];
}
else
{
if
(
[
o_tab_view
numberOfTabViewItems
]
>
2
)
[
o_tab_view
removeTabViewItem
:
[
o_tab_view
tabViewItemAtIndex
:
2
]];
}
[
self
initPanel
:
sender
];
}
...
...
@@ -156,6 +161,23 @@
-
(
void
)
initPanel
:(
id
)
sender
{
[
self
updatePanel
];
[
o_info_window
makeKeyAndOrderFront
:
sender
];
}
-
(
void
)
updatePanel
{
/* make sure that we got the current item and not an outdated one */
intf_thread_t
*
p_intf
=
VLCIntf
;
playlist_t
*
p_playlist
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
if
(
p_playlist
)
{
p_item
=
p_playlist
->
status
.
p_item
;
vlc_object_release
(
p_playlist
);
}
/* check whether our item is valid, because we would crash if not */
if
(
!
[
self
isItemInPlaylist
:
p_item
]
)
return
;
...
...
@@ -204,17 +226,7 @@
[[
VLCInfoTreeItem
rootItem
]
refresh
];
[
o_outline_view
reloadData
];
BOOL
b_stats
=
config_GetInt
(
VLCIntf
,
"stats"
);
if
(
!
b_stats
)
{
if
(
[
o_tab_view
numberOfTabViewItems
]
>
2
)
[
o_tab_view
removeTabViewItem
:
[
o_tab_view
tabViewItemAtIndex
:
2
]];
}
else
{
[
self
updateStatistics
:
nil
];
}
[
o_info_window
makeKeyAndOrderFront
:
sender
];
/* updating the stats isn't our job, but is done by the timer if needed */
}
-
(
void
)
setMeta
:
(
char
*
)
meta
forLabel
:
(
id
)
theItem
...
...
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