Merge lp:~mblayman/entertainer/rss-1.0 into lp:entertainer/future

Proposed by Matt Layman
Status: Merged
Merged at revision: not available
Proposed branch: lp:~mblayman/entertainer/rss-1.0
Merge into: lp:entertainer/future
Prerequisite: lp:~mblayman/entertainer/text-menu-1.0
Diff against target: 138 lines (+32/-24)
4 files modified
entertainerlib/gui/screens/factory.py (+4/-4)
entertainerlib/gui/widgets/arrow_texture.py (+20/-12)
entertainerlib/gui/widgets/grid_menu.py (+6/-6)
entertainerlib/gui/widgets/scroll_area.py (+2/-2)
To merge this branch: bzr merge lp:~mblayman/entertainer/rss-1.0
Reviewer Review Type Date Requested Status
Entertainer Release Team Pending
Review via email: mp+16466@code.launchpad.net

Commit message

All screens related to RSS have been fixed for clutter 1.0

To post a comment you must log in.
Revision history for this message
Matt Layman (mblayman) wrote :

Branch 3 of clutter 1.0 transition.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'entertainerlib/gui/screens/factory.py'
--- entertainerlib/gui/screens/factory.py 2009-12-22 03:13:11 +0000
+++ entertainerlib/gui/screens/factory.py 2009-12-22 03:13:12 +0000
@@ -7,8 +7,8 @@
7#from entertainerlib.gui.screens.album import Album7#from entertainerlib.gui.screens.album import Album
8#from entertainerlib.gui.screens.audio_play import AudioPlay8#from entertainerlib.gui.screens.audio_play import AudioPlay
9#from entertainerlib.gui.screens.disc import Disc9#from entertainerlib.gui.screens.disc import Disc
10#from entertainerlib.gui.screens.feed import Feed10from entertainerlib.gui.screens.feed import Feed
11#from entertainerlib.gui.screens.feed_entry import FeedEntry11from entertainerlib.gui.screens.feed_entry import FeedEntry
12from entertainerlib.gui.screens.main import Main12from entertainerlib.gui.screens.main import Main
13#from entertainerlib.gui.screens.movie import Movie13#from entertainerlib.gui.screens.movie import Movie
14#from entertainerlib.gui.screens.music import Music14#from entertainerlib.gui.screens.music import Music
@@ -16,12 +16,12 @@
16#from entertainerlib.gui.screens.photo_albums import PhotoAlbums16#from entertainerlib.gui.screens.photo_albums import PhotoAlbums
17#from entertainerlib.gui.screens.photographs import Photographs17#from entertainerlib.gui.screens.photographs import Photographs
18from entertainerlib.gui.screens.question import Question18from entertainerlib.gui.screens.question import Question
19#from entertainerlib.gui.screens.rss import Rss19from entertainerlib.gui.screens.rss import Rss
20#from entertainerlib.gui.screens.tv_episodes import TvEpisodes20#from entertainerlib.gui.screens.tv_episodes import TvEpisodes
21#from entertainerlib.gui.screens.tv_series import TvSeries21#from entertainerlib.gui.screens.tv_series import TvSeries
22#from entertainerlib.gui.screens.video import Video22#from entertainerlib.gui.screens.video import Video
23#from entertainerlib.gui.screens.video_osd import VideoOSD23#from entertainerlib.gui.screens.video_osd import VideoOSD
24#from entertainerlib.gui.screens.weather import WeatherScreen24from entertainerlib.gui.screens.weather import WeatherScreen
2525
2626
27class ScreenFactory(object):27class ScreenFactory(object):
2828
=== modified file 'entertainerlib/gui/widgets/arrow_texture.py'
--- entertainerlib/gui/widgets/arrow_texture.py 2009-07-12 17:02:32 +0000
+++ entertainerlib/gui/widgets/arrow_texture.py 2009-12-22 03:13:12 +0000
@@ -2,12 +2,11 @@
2'''Displays text in rounded rectangle box'''2'''Displays text in rounded rectangle box'''
33
4import clutter4import clutter
5from cluttercairo import CairoTexture
65
7from entertainerlib.gui.widgets.base import Base6from entertainerlib.gui.widgets.base import Base
87
98
10class ArrowTexture(Base, CairoTexture):9class ArrowTexture(Base, clutter.CairoTexture):
11 """Clutter CairoTexture which represents an arrow."""10 """Clutter CairoTexture which represents an arrow."""
1211
13 # Arrow direction (One of these should be passed as a paramter)12 # Arrow direction (One of these should be passed as a paramter)
@@ -22,7 +21,7 @@
2221
23 abs_size = self.get_abs_x(size)22 abs_size = self.get_abs_x(size)
2423
25 CairoTexture.__init__(self, abs_size, abs_size)24 clutter.CairoTexture.__init__(self, abs_size, abs_size)
2625
27 context = self.cairo_create()26 context = self.cairo_create()
28 context.scale(abs_size, abs_size)27 context.scale(abs_size, abs_size)
@@ -64,20 +63,29 @@
64 del(context) # Updates texture63 del(context) # Updates texture
6564
66 # Create bounce effect65 # Create bounce effect
67 self.timeline = clutter.Timeline(30)
68 self.alpha = clutter.Alpha(self.timeline, clutter.sine_func)
69 self.set_anchor_point_from_gravity(clutter.GRAVITY_CENTER)66 self.set_anchor_point_from_gravity(clutter.GRAVITY_CENTER)
70 self.behaviour = clutter.BehaviourScale(1.0, 1.0, 1.5, 1.5, self.alpha)67
71 self.behaviour.apply(self)68 in_time = clutter.Timeline(300)
69 in_alpha = clutter.Alpha(in_time, clutter.EASE_OUT_SINE)
70 self.in_behaviour = clutter.BehaviourScale(1.0, 1.0, 1.5, 1.5, in_alpha)
71 self.in_behaviour.apply(self)
72
73 out_time = clutter.Timeline(300)
74 out_alpha = clutter.Alpha(out_time, clutter.EASE_OUT_SINE)
75 self.out_behaviour = clutter.BehaviourScale(1.5, 1.5, 1.0, 1.0,
76 out_alpha)
77 self.out_behaviour.apply(self)
78
79 self.score = clutter.Score()
80 self.score.append(timeline=in_time)
81 self.score.append(timeline=out_time, parent=in_time)
7282
73 self.set_position(self.get_abs_x(x), self.get_abs_y(y))83 self.set_position(self.get_abs_x(x), self.get_abs_y(y))
7484
75 def bounce(self):85 def bounce(self):
76 """86 """Execute bounce effect for this array."""
77 Execute bounce effect for this array.87 if not self.score.is_playing():
78 """88 self.score.start()
79 if not self.timeline.is_playing():
80 self.timeline.start()
8189
82 def _color_to_cairo_color(self, color):90 def _color_to_cairo_color(self, color):
83 """91 """
8492
=== modified file 'entertainerlib/gui/widgets/grid_menu.py'
--- entertainerlib/gui/widgets/grid_menu.py 2009-12-22 03:13:11 +0000
+++ entertainerlib/gui/widgets/grid_menu.py 2009-12-22 03:13:12 +0000
@@ -411,14 +411,14 @@
411 if (x, y) == (self._moving_group_x, self._moving_group_y):411 if (x, y) == (self._moving_group_x, self._moving_group_y):
412 return412 return
413413
414 self._moving_group_behaviour.clear()414 path = clutter.Path()
415415 path.add_move_to(
416 start_knot = (self._moving_group_x * self._item_width_abs,416 self._moving_group_x * self._item_width_abs,
417 self._moving_group_y * self._item_height_abs)417 self._moving_group_y * self._item_height_abs)
418 stop_knot = (x * self._item_width_abs,418 path.add_line_to(
419 x * self._item_width_abs,
419 y * self._item_height_abs)420 y * self._item_height_abs)
420421 self._moving_group_behaviour.set_path(path)
421 self._moving_group_behaviour.append_knots(start_knot, stop_knot)
422422
423 self._moving_group_x, self._moving_group_y = x, y423 self._moving_group_x, self._moving_group_y = x, y
424 self._moving_group_timeline.set_duration(duration)424 self._moving_group_timeline.set_duration(duration)
425425
=== modified file 'entertainerlib/gui/widgets/scroll_area.py'
--- entertainerlib/gui/widgets/scroll_area.py 2009-08-04 01:09:03 +0000
+++ entertainerlib/gui/widgets/scroll_area.py 2009-12-22 03:13:12 +0000
@@ -53,11 +53,11 @@
53 self.add(self._fixed_group)53 self.add(self._fixed_group)
54 self.content = None54 self.content = None
5555
56 self._motion_timeline = clutter.Timeline(fps=200, duration=500)56 self._motion_timeline = clutter.Timeline(500)
57 self._motion_timeline.connect('completed',57 self._motion_timeline.connect('completed',
58 self._motion_timeline_callback, None)58 self._motion_timeline_callback, None)
59 self._motion_alpha = clutter.Alpha(self._motion_timeline,59 self._motion_alpha = clutter.Alpha(self._motion_timeline,
60 clutter.sine_inc_func)60 clutter.EASE_OUT_SINE)
61 self._motion_behaviour = LoopedPathBehaviour(self._motion_alpha)61 self._motion_behaviour = LoopedPathBehaviour(self._motion_alpha)
6262
63 self.set_content(content)63 self.set_content(content)

Subscribers

People subscribed via source and target branches