Created
April 9, 2013 20:08
-
-
Save lubosz/5348943 to your computer and use it in GitHub Desktop.
Fixes /usr/lib/pitivi/python/pitivi/timeline/track.py:279: RuntimeWarning: Expecting to marshal a borrowed reference for <Pixbuf object at 0x462d370 (GdkPixbuf at 0x4898f70)>, but nothing in Python is holding a reference to this object. See: https://bugzilla.gnome.org/show_bug.cgi?id=687522
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/pitivi/timeline/track.py b/pitivi/timeline/track.py | |
index 1d3f272..f3011b3 100644 | |
--- a/pitivi/timeline/track.py | |
+++ b/pitivi/timeline/track.py | |
@@ -284,10 +284,11 @@ class TrimHandle(View, GooCanvas.CanvasImage, Loggable, Zoomable): | |
height = property(getHeight, setHeight) | |
def _scalePixbuf(self): | |
- self.props.pixbuf = self.current_pixbuf.scale_simple( | |
+ new_pixbuf = self.current_pixbuf.scale_simple( | |
self.current_pixbuf.get_width(), | |
self.height, | |
GdkPixbuf.InterpType.BILINEAR) | |
+ self.props.pixbuf = new_pixbuf | |
class StartHandle(TrimHandle): |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment