Merge lp://staging/~samuel-buffet/entertainer/ftx3 into lp://staging/entertainer
Proposed by
Samuel Buffet
Status: | Merged | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Merged at revision: | not available | ||||||||||||
Proposed branch: | lp://staging/~samuel-buffet/entertainer/ftx3 | ||||||||||||
Merge into: | lp://staging/entertainer | ||||||||||||
To merge this branch: | bzr merge lp://staging/~samuel-buffet/entertainer/ftx3 | ||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paul Hummer | Approve | ||
Review via email: mp+2721@code.staging.launchpad.net |
To post a comment you must log in.
2 FIXME removal + on loop to replace 12 blocks of code.
Cheers,
Samuel
=== modified file 'entertainerlib /frontend/ gui/screens/ tv_serie_ episodes_ screen. py' frontend/ gui/screens/ tv_serie_ episodes_ screen. py 2008-12-24 22:14:51 +0000 frontend/ gui/screens/ tv_serie_ episodes_ screen. py 2009-01-08 16:56:25 +0000 get_userdata( ).get_thumbnail _url()
if(thumbnail is not None): pixbuf_ new_from_ file(thumbnail)
thumb_ height = self.ui.y(0.2799)
thumb_ x = self.ui.x(0.05)
thumb_ y = self.ui.y(0.2)
--- entertainerlib/
+++ entertainerlib/
@@ -95,7 +95,7 @@
thumbnail = menu_item.
pixbuf = gtk.gdk.
- thumb_width = self.ui.x(0.2928) #FIXME
+ thumb_width = self.ui.x(0.2928)
=== modified file 'entertainerlib /frontend/ gui/widgets/ loading_ animation. py' frontend/ gui/widgets/ loading_ animation. py 2008-12-08 03:28:26 +0000 frontend/ gui/widgets/ loading_ animation. py 2009-01-08 19:54:20 +0000
context. set_line_ width (thickness)
context. set_line_ cap(cairo. LINE_CAP_ ROUND)
--- entertainerlib/
+++ entertainerlib/
@@ -39,123 +39,32 @@
- radius = outter_radius # radius of larger circle set_source_ rgba(bg[ 0], bg[1], bg[2], bg[3]) get_current_ point() get_current_ point() set_source_ rgba(c[ 0], c[1], c[2], c[3] - 0.9) get_current_ point() set_source_ rgba(c[ 0], c[1], c[2], c[3] - 0.8) get_current_ point() set_source_ rgba(c[ 0], c[1], c[2], c[3] - 0.7) get_current_ point() set_source_ rgba(c[ 0], c[1], c[2], c[3] - 0.6) get_curren. ..
- in_radius = inner_radius # radius of smaller circle
-
- # Background color
- context.
-
- #FIXME: Refactor line drawing to be done in a one loop
- angle = 0 * (math.pi / 180.0)
- context.arc(0.5, 0.5, in_radius, angle, angle)
- (x, y) = context.
- context.new_path()
- context.arc(0.5, 0.5, radius, angle, angle)
- context.line_to(x, y)
- context.stroke()
-
- angle = 30 * (math.pi / 180.0)
- context.arc(0.5, 0.5, in_radius, angle, angle)
- (x, y) = context.
- context.new_path()
- context.arc(0.5, 0.5, radius, angle, angle)
- context.line_to(x, y)
- context.stroke()
-
- context.
- angle = 60 * (math.pi / 180.0)
- context.arc(0.5, 0.5, in_radius, angle, angle)
- (x, y) = context.
- context.new_path()
- context.arc(0.5, 0.5, radius, angle, angle)
- context.line_to(x, y)
- context.stroke()
-
- context.
- angle = 90 * (math.pi / 180.0)
- context.arc(0.5, 0.5, in_radius, angle, angle)
- (x, y) = context.
- context.new_path()
- context.arc(0.5, 0.5, radius, angle, angle)
- context.line_to(x, y)
- context.stroke()
-
- context.
- angle = 120 * (math.pi / 180.0)
- context.arc(0.5, 0.5, in_radius, angle, angle)
- (x, y) = context.
- context.new_path()
- context.arc(0.5, 0.5, radius, angle, angle)
- context.line_to(x, y)
- context.stroke()
-
- context.
- angle = 150 * (math.pi / 180.0)
- context.arc(0.5, 0.5, in_radius, angle, angle)
- (x, y) = context.