Merge lp:~michael-sheldon/jokosher/cairo_fix into lp:jokosher

Proposed by Michael Sheldon
Status: Merged
Merged at revision: 1107
Proposed branch: lp:~michael-sheldon/jokosher/cairo_fix
Merge into: lp:jokosher
Diff against target: 38 lines (+5/-5)
2 files modified
Jokosher/Project.py (+1/-1)
Jokosher/VUWidget.py (+4/-4)
To merge this branch: bzr merge lp:~michael-sheldon/jokosher/cairo_fix
Reviewer Review Type Date Requested Status
Jokosher Code Pending
Review via email: mp+23484@code.launchpad.net

Description of the change

Fixes VU meters under Lucid

To post a comment you must log in.
1106. By Michael Sheldon

Save the project's master volume

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Jokosher/Project.py'
2--- Jokosher/Project.py 2010-03-31 22:06:22 +0000
3+++ Jokosher/Project.py 2010-05-22 00:33:32 +0000
4@@ -787,7 +787,7 @@
5 params = doc.createElement("Parameters")
6 head.appendChild(params)
7
8- items = ["viewScale", "viewStart", "name", "author",
9+ items = ["viewScale", "viewStart", "name", "author", "volume",
10 "transportMode", "bpm", "meter_nom", "meter_denom", "projectfile"]
11
12 Utils.StoreParametersToXML(self, doc, params, items)
13
14=== modified file 'Jokosher/VUWidget.py'
15--- Jokosher/VUWidget.py 2009-02-15 19:21:55 +0000
16+++ Jokosher/VUWidget.py 2010-05-22 00:33:32 +0000
17@@ -306,7 +306,7 @@
18 """
19
20 ctx = widget.window.cairo_create()
21-
22+ ctx.save()
23 rect = self.get_allocation()
24
25 # Fill a black background
26@@ -320,9 +320,9 @@
27 ctx.set_source_surface(self.source, 0, 0)
28 ctx.paint()
29
30- # Reset the clip region
31- ctx.reset_clip()
32-
33+ # Restore the clipping region from saved context
34+ ctx.restore()
35+
36 # Draw the current volume level bar, with highlight if appropriate
37 vpos = self.__GetVolumeHandleYPos()
38 if self.fader_active:

Subscribers

People subscribed via source and target branches