Merge lp:~zoe-gauthier/pitivi/gdk_cairo_reset_clip.lp537619 into lp:ubuntu/lucid/pitivi

Proposed by ooze
Status: Merged
Merged at revision: not available
Proposed branch: lp:~zoe-gauthier/pitivi/gdk_cairo_reset_clip.lp537619
Merge into: lp:ubuntu/lucid/pitivi
Diff against target: 31 lines (+19/-0)
2 files modified
debian/changelog (+7/-0)
debian/patches/lp537619_gdk_cairo_reset_clip.patch (+12/-0)
To merge this branch: bzr merge lp:~zoe-gauthier/pitivi/gdk_cairo_reset_clip.lp537619
Reviewer Review Type Date Requested Status
James Westby (community) Approve
Review via email: mp+22839@code.launchpad.net

Description of the change

This branches includes a fix for changing the parameters to a call to gtk.gdk.CairoContext.reset_clip. The call was missing the "cr" and "drawable" parameters.

In case PyGtk changes not to require the "cr" parameter (which is redundant with the "self" parameter), the explicit "cr" parameter would simply be ignored and not break this code.

C language documentation is available at http://library.gnome.org/devel/gdk/stable/gdk-Cairo-Interaction.html#gdk-cairo-reset-clip

To post a comment you must log in.
Revision history for this message
James Westby (james-w) wrote :

Looks good, uploaded.

Thanks,

James

review: Approve
Revision history for this message
ooze (zoe-gauthier) wrote :

Sorry, the object passed to the "drawable" parameter was incorrect. It it fixed in a new version of the patch in the branch.

I also initially misunderstood the concept of requesting a merge in Launchpad; I only wanted to link the bug branch with the ubuntu branch for reviews. OTOH, the branch is retested and fixed to do what it was supposed to do.

Revision history for this message
James Westby (james-w) wrote :

On Tue, 06 Apr 2010 17:50:33 -0000, Philippe Gauthier <email address hidden> wrote:
> Sorry, the object passed to the "drawable" parameter was incorrect. It it fixed in a new version of the patch in the branch.

I uploaded the newer version, thanks.

> I also initially misunderstood the concept of requesting a merge in Launchpad; I only wanted to link the bug branch with the ubuntu branch for reviews. OTOH, the branch is retested and fixed to do what it was supposed to do.

Right, you can just link the branch and not create the merge
proposal. The other alternative is to create the merge proposal but set
the status to "Work In Progress", rather than "Needs Review"

Thanks,

James

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2010-03-10 22:03:38 +0000
3+++ debian/changelog 2010-04-05 22:08:21 +0000
4@@ -1,3 +1,10 @@
5+pitivi (0.13.4-0ubuntu2) lucid; urgency=low
6+
7+ * debian/patches/lp537619_gdk_cairo_reset_clip.patch: Use correct
8+ parameters for gtk.gdk.CairoContext.reset_clip. (LP: #537619)
9+
10+ -- Philippe Gauthier <philippe.gauthier@deuxpi.ca> Mon, 05 Apr 2010 17:10:22 -0400
11+
12 pitivi (0.13.4-0ubuntu1) lucid; urgency=low
13
14 * New upstream version:
15
16=== added file 'debian/patches/lp537619_gdk_cairo_reset_clip.patch'
17--- debian/patches/lp537619_gdk_cairo_reset_clip.patch 1970-01-01 00:00:00 +0000
18+++ debian/patches/lp537619_gdk_cairo_reset_clip.patch 2010-04-05 22:08:21 +0000
19@@ -0,0 +1,12 @@
20+diff -Nurp pitivi-0.13.4/pitivi/ui/curve.py pitivi-0.13.4-new/pitivi/ui/curve.py
21+--- pitivi-0.13.4/pitivi/ui/curve.py 2010-02-19 11:17:24.000000000 -0500
22++++ pitivi-0.13.4-new/pitivi/ui/curve.py 2010-04-05 17:06:41.233651709 -0400
23+@@ -258,7 +258,7 @@ class Curve(goocanvas.ItemSimple, goocan
24+ bounds = intersect(self.bounds, bounds)
25+ width = bounds.x2 - bounds.x1
26+ height = bounds.y2 - bounds.y1
27+- cr.reset_clip()
28++ cr.reset_clip(cr=cr, drawable=self.get_canvas())
29+ cr.rectangle(bounds.x1, bounds.y1, width, height)
30+ cr.clip()
31+

Subscribers

People subscribed via source and target branches

to all changes: