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
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.
Revision history for this message
Samuel Buffet (samuel-buffet) wrote :
Download full text (6.8 KiB)

2 FIXME removal + on loop to replace 12 blocks of code.

Cheers,
Samuel

=== modified file 'entertainerlib/frontend/gui/screens/tv_serie_episodes_screen.py'
--- entertainerlib/frontend/gui/screens/tv_serie_episodes_screen.py 2008-12-24 22:14:51 +0000
+++ entertainerlib/frontend/gui/screens/tv_serie_episodes_screen.py 2009-01-08 16:56:25 +0000
@@ -95,7 +95,7 @@
         thumbnail = menu_item.get_userdata().get_thumbnail_url()
         if(thumbnail is not None):
             pixbuf = gtk.gdk.pixbuf_new_from_file(thumbnail)
- thumb_width = self.ui.x(0.2928) #FIXME
+ thumb_width = self.ui.x(0.2928)
             thumb_height = self.ui.y(0.2799)
             thumb_x = self.ui.x(0.05)
             thumb_y = self.ui.y(0.2)

=== modified file 'entertainerlib/frontend/gui/widgets/loading_animation.py'
--- entertainerlib/frontend/gui/widgets/loading_animation.py 2008-12-08 03:28:26 +0000
+++ entertainerlib/frontend/gui/widgets/loading_animation.py 2009-01-08 19:54:20 +0000
@@ -39,123 +39,32 @@
         context.set_line_width (thickness)
         context.set_line_cap(cairo.LINE_CAP_ROUND)

- radius = outter_radius # radius of larger circle
- in_radius = inner_radius # radius of smaller circle
-
- # Background color
- context.set_source_rgba(bg[0], bg[1], bg[2], bg[3])
-
- #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.get_current_point()
- 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.get_current_point()
- context.new_path()
- context.arc(0.5, 0.5, radius, angle, angle)
- context.line_to(x, y)
- context.stroke()
-
- context.set_source_rgba(c[0], c[1], c[2], c[3] - 0.9)
- angle = 60 * (math.pi / 180.0)
- context.arc(0.5, 0.5, in_radius, angle, angle)
- (x, y) = context.get_current_point()
- context.new_path()
- context.arc(0.5, 0.5, radius, angle, angle)
- context.line_to(x, y)
- context.stroke()
-
- context.set_source_rgba(c[0], c[1], c[2], c[3] - 0.8)
- angle = 90 * (math.pi / 180.0)
- context.arc(0.5, 0.5, in_radius, angle, angle)
- (x, y) = context.get_current_point()
- context.new_path()
- context.arc(0.5, 0.5, radius, angle, angle)
- context.line_to(x, y)
- context.stroke()
-
- context.set_source_rgba(c[0], c[1], c[2], c[3] - 0.7)
- angle = 120 * (math.pi / 180.0)
- context.arc(0.5, 0.5, in_radius, angle, angle)
- (x, y) = context.get_current_point()
- context.new_path()
- context.arc(0.5, 0.5, radius, angle, angle)
- context.line_to(x, y)
- context.stroke()
-
- context.set_source_rgba(c[0], c[1], c[2], c[3] - 0.6)
- angle = 150 * (math.pi / 180.0)
- context.arc(0.5, 0.5, in_radius, angle, angle)
- (x, y) = context.get_curren...

Read more...

Revision history for this message
Paul Hummer (rockstar) :
review: Approve
336. By Samuel Buffet

merged vs trunk

Subscribers

People subscribed via source and target branches