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
a5b4ede6
Commit
a5b4ede6
authored
Dec 31, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpris controller: update to new api
parent
ac88248a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
extras/mpris.py
extras/mpris.py
+12
-4
No files found.
extras/mpris.py
View file @
a5b4ede6
...
...
@@ -271,14 +271,22 @@ def icon_clicked(widget, event):
# get playing status, modify the Play/Pause button accordingly
def
GetPlayStatus
(
widget
):
global
playing
global
shuffle
global
loop
global
repeat
status
=
player
.
GetStatus
()
if
status
==
0
:
playing
=
status
[
0
]
==
0
if
playing
:
img_bt_toggle
.
set_from_stock
(
"gtk-media-pause"
,
gtk
.
ICON_SIZE_SMALL_TOOLBAR
)
playing
=
True
else
:
img_bt_toggle
.
set_from_stock
(
"gtk-media-play"
,
gtk
.
ICON_SIZE_SMALL_TOOLBAR
)
playing
=
False
shuffle
=
status
[
1
]
==
1
bt_shuffle
.
set_active
(
shuffle
)
loop
=
status
[
2
]
==
1
bt_loop
.
set_active
(
loop
)
repeat
=
status
[
3
]
==
1
bt_repeat
.
set_active
(
repeat
)
# loads glade file from the directory where the script is,
# so we can use /path/to/mpris.py to execute it.
import
sys
...
...
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