Merge lp:~mblayman/entertainer/todo-fixme-fixes into lp:entertainer

Proposed by Matt Layman
Status: Merged
Merged at revision: not available
Proposed branch: lp:~mblayman/entertainer/todo-fixme-fixes
Merge into: lp:entertainer
To merge this branch: bzr merge lp:~mblayman/entertainer/todo-fixme-fixes
Reviewer Review Type Date Requested Status
Paul Hummer Approve
Review via email: mp+2594@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Matt Layman (mblayman) wrote :

The branch will just cover the technical debt bugs that I have already targeted for 0.3. They are very low hanging fruit.

Revision history for this message
Matt Layman (mblayman) wrote :
Download full text (9.1 KiB)

=== modified file 'entertainerlib/frontend/gui/screens/photographs_screen.py'
--- entertainerlib/frontend/gui/screens/photographs_screen.py 2008-12-05 18:26:33 +0000
+++ entertainerlib/frontend/gui/screens/photographs_screen.py 2009-01-03 15:16:54 +0000
@@ -98,32 +98,9 @@
                 photographs[1:])
             return False
         else:
- if self.config.show_effects():
- timeline = clutter.Timeline(35, 26)
- alpha = clutter.Alpha(timeline, clutter.smoothstep_inc_func)
- self.behaviour = clutter.BehaviourOpacity(255, 0, alpha)
- self.behaviour.apply(self.throbber)
- timeline.connect('completed', self._remove_throbber, None)
- timeline.start()
- else:
- self.throbber.hide()
- self.remove(self.throbber)
- del self.throbber
+ self.throbber.hide()
             return False

- def _remove_throbber(self, timeline, actor):
- """
- Callback function for timeline that fades out photograph menu throbber.
- This is called when animation is finished and we are free to remove
- throbber from memory.
- @param timeline: clutter.Timeline object
- @param actor: clutter.Actor object
- """
- # TODO: Figure out if/how timeline and actor should be used
- self.throbber.hide()
- self.remove(self.throbber)
- del self.throbber
-
     def _update_image_info(self, number):
         """
         Update image information box.

=== modified file 'entertainerlib/frontend/gui/widgets/grid_menu.py'
--- entertainerlib/frontend/gui/widgets/grid_menu.py 2008-11-17 21:45:53 +0000
+++ entertainerlib/frontend/gui/widgets/grid_menu.py 2009-01-03 15:16:54 +0000
@@ -60,7 +60,6 @@
         self.active = True # Is this menu active
         self.content_timeline = None # Content scroll timeline
         self.cursor_timeline = None # Cursor move timeline
- self.optimize_memory = False # Should we optimize memory usage

         self.add(self.itemgroup)

@@ -69,16 +68,6 @@
         c.set_color((255, 0, 0, 128))
         self.set_cursor(c)

- def optimize_memory_usage(self, boolean):
- """
- This method can be used to change widget's memory consuption. When
- memory usage is optimized, only visible menuitems are kept in memory.
- This saves memory, but the menu might be slower when scrolled.
- @param boolean: True to set optimize on, False to disable optimization
- """
- #FIXME: When changed relize or unrealize needed menuitems.
- self.optimize_memory = boolean
-
     def set_cursor(self, cursor):
         """
         Set cursor actor. This is usually a Texture or clutter.Rectangle.
@@ -423,7 +412,6 @@
                 if cur_y == 0:
                     if con_y > 0:
                         self._move_content(1, self.DOWN)
- self._update_memory_state()
                 else:
                     self._move_cursor(self.UP)
             elif direction == self.DOWN:
@@ -432,7 +420,6 @@
                 else:
...

Read more...

Revision history for this message
Paul Hummer (rockstar) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matt-

   These changes look good. I would have rather had tests written in
the cases of the TODO: write this test, instead of had them deleted,
but it also doesn't make sense to continue to have crufty tests...

 vote approve

Cheers,
Paul
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAklhbqIACgkQHE2KxYYv8I8CPQCgo1EB8kEyfKfUv31cTKCFOjSd
eXkAn0sxGdbLkDCFJw9RY8+Qq2rD31CX
=osrM
-----END PGP SIGNATURE-----

review: Approve

Subscribers

People subscribed via source and target branches