pitivi r1156 - in branches/SOC_2008_BLEWIS: . pitivi/ui
- From: edwardrv svn gnome org
- To: svn-commits-list gnome org
- Subject: pitivi r1156 - in branches/SOC_2008_BLEWIS: . pitivi/ui
- Date: Mon, 7 Jul 2008 12:29:45 +0000 (UTC)
Author: edwardrv
Date: Mon Jul 7 12:29:45 2008
New Revision: 1156
URL: http://svn.gnome.org/viewvc/pitivi?rev=1156&view=rev
Log:
* pitivi/ui/ruler.py:
Fixor the ruler like a vilain. It actually works properly now without
redrawing too much (or too little).
Modified:
branches/SOC_2008_BLEWIS/ChangeLog
branches/SOC_2008_BLEWIS/pitivi/ui/ruler.py
Modified: branches/SOC_2008_BLEWIS/pitivi/ui/ruler.py
==============================================================================
--- branches/SOC_2008_BLEWIS/pitivi/ui/ruler.py (original)
+++ branches/SOC_2008_BLEWIS/pitivi/ui/ruler.py Mon Jul 7 12:29:45 2008
@@ -71,9 +71,9 @@
def timelinePositionChanged(self, value, unused_frame):
previous = self.position
self.position = value
- self.queue_draw_area(max(self.nsToPixel(min(value, previous)) - 5, 0),
- 0,
- self.nsToPixel(max(value, previous)) + 5,
+ orig = max(self.nsToPixel(min(value, previous)) - 5, 0) + 5
+ width = self.nsToPixel(max(value, previous)) + 5 - max(self.nsToPixel(min(value, previous)) - 5, 0)
+ self.queue_draw_area(orig, 0, width,
self.get_allocation().height)
## gtk.Widget overrides
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]