Merge lp:~mblayman/entertainer/clean-up-1.0 into lp:entertainer/future

Proposed by Matt Layman
Status: Merged
Approved by: Matt Layman
Approved revision: not available
Merged at revision: not available
Proposed branch: lp:~mblayman/entertainer/clean-up-1.0
Merge into: lp:entertainer/future
Prerequisite: lp:~mblayman/entertainer/videos-1.0
Diff against target: 157 lines (+19/-29)
7 files modified
entertainerlib/gui/user_interface.py (+10/-13)
entertainerlib/gui/widgets/grid_menu.py (+0/-4)
entertainerlib/gui/widgets/image_menu.py (+0/-4)
entertainerlib/gui/widgets/menu_overlay.py (+0/-2)
entertainerlib/gui/widgets/scroll_menu.py (+0/-1)
entertainerlib/gui/widgets/volume_indicator.py (+8/-4)
entertainerlib/tests/test_arrowtexture.py (+1/-1)
To merge this branch: bzr merge lp:~mblayman/entertainer/clean-up-1.0
Reviewer Review Type Date Requested Status
Matt Layman Approve
Francesco Marella (community) Approve
Review via email: mp+16470@code.launchpad.net

Commit message

Final cleanup of clutter 1.0 transition. Fixed the fullscreen size problem.

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

Branch 7 of clutter 1.0 transition.

Revision history for this message
Matt Layman (mblayman) wrote :

> Branch 7 of clutter 1.0 transition.

Since this might be the only branch people will review. Please see my "just-enough" branch merge proposal for context.

Revision history for this message
Francesco Marella (francesco-marella) wrote :

Looks good to me. ;)

review: Approve
418. By Matt Layman

Merge from future.

Revision history for this message
Matt Layman (mblayman) wrote :

Paul, is there a statute of limitations on merge proposals?

I don't really want to merge/approve my own code and I'd like to get an Entertainer Release Team approval. But these days, any Entertainer Release Team approval that's not me is you. I saw your blog post about getting away from computers and that's awesome for you, but does that mean I need to adopt a different philosophy about merge proposals in the future?

I'm kind of wondering if you just no longer commit any time to Entertainer. I know my own time is pretty minimal, but I'm trying to figure out if Entertainer is a team of one (plus occasional drive-by contributions).

Revision history for this message
Matt Layman (mblayman) wrote :

I'm defaulting to Francesco's approval.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'entertainerlib/gui/user_interface.py'
--- entertainerlib/gui/user_interface.py 2010-01-03 22:55:21 +0000
+++ entertainerlib/gui/user_interface.py 2010-01-03 22:55:22 +0000
@@ -96,16 +96,14 @@
96 self.config.stage_width, self.config.stage_height)96 self.config.stage_width, self.config.stage_height)
97 self.stage.add(self.menu_overlay)97 self.stage.add(self.menu_overlay)
9898
99 # XXX: laymansterms - Hide the volume indicator for now because it's99 self.volume_indicator = VolumeIndicator()
100 # blocking getting the main screen up and it's not critical.100 self.stage.add(self.volume_indicator)
101 #self.volume_indicator = VolumeIndicator()101 self.volume_indicator.connect('hiding',
102 #self.stage.add(self.volume_indicator)102 self._on_volume_indicator_hiding)
103 #self.volume_indicator.connect('hiding',103 self.fade_screen_timeline = clutter.Timeline(200)
104 # self._on_volume_indicator_hiding)104 alpha = clutter.Alpha(self.fade_screen_timeline,
105 #self.fade_screen_timeline = clutter.Timeline(13, 26)105 clutter.EASE_IN_OUT_SINE)
106 #alpha = clutter.Alpha(self.fade_screen_timeline,106 self.fade_screen_behaviour = clutter.BehaviourOpacity(255, 0, alpha)
107 # clutter.smoothstep_inc_func)
108 #self.fade_screen_behaviour = clutter.BehaviourOpacity(255, 0, alpha)
109107
110 # Transition object. Handles effects between screen changes.108 # Transition object. Handles effects between screen changes.
111 transition_factory = TransitionFactory(self._remove_from_stage)109 transition_factory = TransitionFactory(self._remove_from_stage)
@@ -186,9 +184,8 @@
186 '''Set the window, stage, and config to fullscreen dimensions.'''184 '''Set the window, stage, and config to fullscreen dimensions.'''
187 self.window.fullscreen()185 self.window.fullscreen()
188 self.stage.set_fullscreen(True)186 self.stage.set_fullscreen(True)
189 width, height = self.stage.get_size()187 self.config.stage_width = int(gtk.gdk.screen_width())
190 self.config.stage_width = int(width)188 self.config.stage_height = int(gtk.gdk.screen_height())
191 self.config.stage_height = int(height)
192189
193 def destroy_callback(self, widget):190 def destroy_callback(self, widget):
194 '''Handle the GTK destroy signal and close gracefully.'''191 '''Handle the GTK destroy signal and close gracefully.'''
195192
=== modified file 'entertainerlib/gui/widgets/grid_menu.py'
--- entertainerlib/gui/widgets/grid_menu.py 2010-01-03 22:55:22 +0000
+++ entertainerlib/gui/widgets/grid_menu.py 2010-01-03 22:55:24 +0000
@@ -61,8 +61,6 @@
6161
62 # The moving_group is translated using a `BehaviourPath`.62 # The moving_group is translated using a `BehaviourPath`.
63 self._moving_group_timeline = clutter.Timeline(200)63 self._moving_group_timeline = clutter.Timeline(200)
64 # XXX: laymansterms - Experiment with different functions, the one
65 # selected was just to get things working.
66 moving_group_alpha = clutter.Alpha(self._moving_group_timeline,64 moving_group_alpha = clutter.Alpha(self._moving_group_timeline,
67 clutter.EASE_IN_OUT_SINE)65 clutter.EASE_IN_OUT_SINE)
68 moving_group_path = clutter.Path()66 moving_group_path = clutter.Path()
@@ -76,8 +74,6 @@
76 self._cursor_y = 074 self._cursor_y = 0
77 self._cursor = None75 self._cursor = None
78 self._cursor_timeline = clutter.Timeline(200)76 self._cursor_timeline = clutter.Timeline(200)
79 # XXX: laymansterms - Experiment with different functions, the one
80 # selected was just to get things working.
81 cursor_alpha = clutter.Alpha(self._cursor_timeline,77 cursor_alpha = clutter.Alpha(self._cursor_timeline,
82 clutter.EASE_IN_SINE)78 clutter.EASE_IN_SINE)
83 cursor_path = clutter.Path()79 cursor_path = clutter.Path()
8480
=== modified file 'entertainerlib/gui/widgets/image_menu.py'
--- entertainerlib/gui/widgets/image_menu.py 2010-01-03 22:55:22 +0000
+++ entertainerlib/gui/widgets/image_menu.py 2010-01-03 22:55:24 +0000
@@ -122,8 +122,6 @@
122 pix_buffer = gtk.gdk.pixbuf_new_from_file(item[0])122 pix_buffer = gtk.gdk.pixbuf_new_from_file(item[0])
123 texture = RoundedTexture(0.0, 0.0, 0.1, 0.25, pix_buffer)123 texture = RoundedTexture(0.0, 0.0, 0.1, 0.25, pix_buffer)
124 else:124 else:
125 # XXX: laymansterms - something is fishy. Images aren't showing
126 # up using Clone. Must be related to the clutter warning.
127 texture = clutter.Clone(self.movie_default)125 texture = clutter.Clone(self.movie_default)
128126
129 self.add_item(texture, item[1])127 self.add_item(texture, item[1])
@@ -148,8 +146,6 @@
148 if item[1].has_album_art():146 if item[1].has_album_art():
149 texture = Texture(item[0])147 texture = Texture(item[0])
150 else:148 else:
151 # XXX: laymansterms - something is fishy. Images aren't showing
152 # up using Clone. Must be related to the clutter warning.
153 texture = clutter.Clone(self.album_default)149 texture = clutter.Clone(self.album_default)
154150
155 self.add_item(texture, item[1])151 self.add_item(texture, item[1])
156152
=== modified file 'entertainerlib/gui/widgets/menu_overlay.py'
--- entertainerlib/gui/widgets/menu_overlay.py 2010-01-03 22:55:22 +0000
+++ entertainerlib/gui/widgets/menu_overlay.py 2010-01-03 22:55:24 +0000
@@ -18,8 +18,6 @@
18 """Initialize overlay texture."""18 """Initialize overlay texture."""
19 Texture.__init__(self, filename = theme.getImage("menu_overlay"))19 Texture.__init__(self, filename = theme.getImage("menu_overlay"))
20 self.timeline = clutter.Timeline(500)20 self.timeline = clutter.Timeline(500)
21 # XXX: laymansterms - I don't know if this is the right function type.
22 # It needs to be played with.
23 self.alpha = clutter.Alpha(self.timeline, clutter.EASE_IN_OUT_SINE)21 self.alpha = clutter.Alpha(self.timeline, clutter.EASE_IN_OUT_SINE)
24 self.behaviour = clutter.BehaviourOpacity(255, 0, self.alpha)22 self.behaviour = clutter.BehaviourOpacity(255, 0, self.alpha)
25 self.behaviour.apply(self)23 self.behaviour.apply(self)
2624
=== modified file 'entertainerlib/gui/widgets/scroll_menu.py'
--- entertainerlib/gui/widgets/scroll_menu.py 2010-01-03 22:55:22 +0000
+++ entertainerlib/gui/widgets/scroll_menu.py 2010-01-03 22:55:24 +0000
@@ -57,7 +57,6 @@
57 self._motion_handler = 057 self._motion_handler = 0
5858
59 self._timeline = clutter.Timeline(300)59 self._timeline = clutter.Timeline(300)
60 # XXX: laymansterms - Play with different functions to get this right.
61 self._alpha = clutter.Alpha(self._timeline, clutter.EASE_IN_OUT_SINE)60 self._alpha = clutter.Alpha(self._timeline, clutter.EASE_IN_OUT_SINE)
6261
63 # preparation to pointer events handling62 # preparation to pointer events handling
6463
=== modified file 'entertainerlib/gui/widgets/volume_indicator.py'
--- entertainerlib/gui/widgets/volume_indicator.py 2009-07-14 04:24:07 +0000
+++ entertainerlib/gui/widgets/volume_indicator.py 2010-01-03 22:55:24 +0000
@@ -18,7 +18,11 @@
1818
19 theme = self.config.theme19 theme = self.config.theme
20 filled = clutter.Texture(theme.getImage("volume_filled"))20 filled = clutter.Texture(theme.getImage("volume_filled"))
21 filled.hide()
22 self.add(filled)
21 unfilled = clutter.Texture(theme.getImage("volume_unfilled"))23 unfilled = clutter.Texture(theme.getImage("volume_unfilled"))
24 unfilled.hide()
25 self.add(unfilled)
22 volume = clutter.Texture(theme.getImage("volume"))26 volume = clutter.Texture(theme.getImage("volume"))
23 self.add(volume)27 self.add(volume)
2428
@@ -27,8 +31,8 @@
27 bar_width = filled.get_width()31 bar_width = filled.get_width()
2832
29 for i in range(20):33 for i in range(20):
30 bar_filled = clutter.CloneTexture(filled)34 bar_filled = clutter.Clone(filled)
31 bar_unfilled = clutter.CloneTexture(unfilled)35 bar_unfilled = clutter.Clone(unfilled)
32 bar_filled.set_position(volume.get_width() + i * bar_width, 0)36 bar_filled.set_position(volume.get_width() + i * bar_width, 0)
33 bar_unfilled.set_position(volume.get_width() + i * bar_width, 0)37 bar_unfilled.set_position(volume.get_width() + i * bar_width, 0)
34 self.add(bar_filled)38 self.add(bar_filled)
@@ -39,8 +43,8 @@
39 self.visible = False43 self.visible = False
40 self.set_opacity(0)44 self.set_opacity(0)
4145
42 self.timeline = clutter.Timeline(13, 26)46 self.timeline = clutter.Timeline(200)
43 self.alpha = clutter.Alpha(self.timeline, clutter.smoothstep_inc_func)47 self.alpha = clutter.Alpha(self.timeline, clutter.EASE_IN_OUT_SINE)
44 self.behaviour = clutter.BehaviourOpacity(255, 0, self.alpha)48 self.behaviour = clutter.BehaviourOpacity(255, 0, self.alpha)
45 self.behaviour.apply(self)49 self.behaviour.apply(self)
4650
4751
=== modified file 'entertainerlib/tests/test_arrowtexture.py'
--- entertainerlib/tests/test_arrowtexture.py 2009-07-14 04:56:55 +0000
+++ entertainerlib/tests/test_arrowtexture.py 2010-01-03 22:55:24 +0000
@@ -22,5 +22,5 @@
22 def test_bounce(self):22 def test_bounce(self):
23 '''Test the bounce method.'''23 '''Test the bounce method.'''
24 self.arrow.bounce()24 self.arrow.bounce()
25 self.assertTrue(self.arrow.timeline.is_playing())25 self.assertTrue(self.arrow.score.is_playing())
2626

Subscribers

People subscribed via source and target branches