pitivi r1224 - in branches/SOC_2008_BLEWIS: . pitivi/ui
- From: blewis svn gnome org
- To: svn-commits-list gnome org
- Subject: pitivi r1224 - in branches/SOC_2008_BLEWIS: . pitivi/ui
- Date: Tue, 29 Jul 2008 05:32:36 +0000 (UTC)
Author: blewis
Date: Tue Jul 29 05:32:36 2008
New Revision: 1224
URL: http://svn.gnome.org/viewvc/pitivi?rev=1224&view=rev
Log:
* pitivi/ui/complextimeline.py:
Proper cliping of labels on timeline objects.
Modified:
branches/SOC_2008_BLEWIS/ChangeLog
branches/SOC_2008_BLEWIS/pitivi/ui/complextimeline.py
Modified: branches/SOC_2008_BLEWIS/pitivi/ui/complextimeline.py
==============================================================================
--- branches/SOC_2008_BLEWIS/pitivi/ui/complextimeline.py (original)
+++ branches/SOC_2008_BLEWIS/pitivi/ui/complextimeline.py Tue Jul 29 05:32:36 2008
@@ -326,6 +326,10 @@
x = self.x + self.width
y = self.y + self.height
self.spacer.points = goocanvas.Points([(x, 0), (x, y)])
+ # clip text to object width
+ w = self.width - width(self.r_handle)
+ self.name.props.clip_path = "M%g,%g h%g v%g h-%g z" % (
+ self.x, self.y, w, self.height, w)
def do_set_x(self, *args):
x = self.x
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]