/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to avatarsbox.py

  • Committer: Curtis Hovey
  • Date: 2011-09-03 21:24:24 UTC
  • mto: This revision was merged to the branch mainline in revision 738.
  • Revision ID: sinzui.is@verizon.net-20110903212424-afdwfqyv3z8gnt1z
Lint fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
195
195
        """Add the given username in the role box and add in the worker queue.
196
196
        """
197
197
        avatar = Avatar(username)
198
 
        if (role == "author" and not self._role_box_for("committer").showing(avatar)) or role == "committer":
 
198
        is_shown = self._role_box_for("committer").showing(avatar)
 
199
        if (role == "author" and not is_shown) or role == "committer":
199
200
            if self._role_box_for(role).append_avatars_with(avatar):
200
201
                self.__worker.queue(avatar.email)
201
202
 
239
240
            loader.close()
240
241
 
241
242
            for role in ["committer", "author"]:
242
 
                self._role_box_for(role).and_avatar_email(email).update_avatar_image_from_pixbuf_loader(loader)
 
243
                self._role_box_for(role).and_avatar_email(
 
244
                    email).update_avatar_image_from_pixbuf_loader(loader)
243
245
 
244
246
    def _role_box_for(self, role):
245
247
        """ Return the gtk.HBox for the given role """