Package: pathological / 1.1.3-16

define-music_pending_song.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From: Markus Koschany <apo@debian.org>
Date: Mon, 15 Apr 2013 00:27:06 +0200
Subject: define music_pending_song

Bug: http://bugs.debian.org/705417

Taken from the Gentoo distribution, pathological-1.1.3-music-py.patch.
The original patch was presumably created by "vapier". See also
http://bugs.gentoo.org/109272

---
 pathological.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pathological.py b/pathological.py
index e8b1f84..8ccadc6 100755
--- a/pathological.py
+++ b/pathological.py
@@ -30,6 +30,7 @@ fullscreen = 0
 colorblind = 0
 sound_on = 1
 music_on = 1
+music_pending_song = 0
 for arg in sys.argv[1:]:
 	if arg == '-s':
 		screenshot = 1
@@ -196,7 +197,7 @@ def toggle_sound():
 	sound_on = sound_on ^ 1
 
 def toggle_music():
-	global music_on
+	global music_pending_song, music_on
 	music_on = music_on ^ 1
 	if music_on:
 		if music_pending_song: