/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:18:21 UTC
  • mto: This revision was merged to the branch mainline in revision 738.
  • Revision ID: sinzui.is@verizon.net-20110903211821-oitt1zqmzkanyhhg
Backport gtk3 test suite fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
    def __eq__(self, other):
40
40
        return (self.apparent_username == other.apparent_username and
41
 
                self.name == other.name and
 
41
                self.username == other.username and
42
42
                self.email == other.email)
43
43
 
44
44
    def show_spinner(self):
184
184
        # This callback method should be fired by all workers when a request
185
185
        # is done.
186
186
        self.__worker.set_callback_method(self._update_avatar_from_response)
187
 
        self.__worker.start()
 
187
        self.connect('destroy', self.on_destroy)
 
188
 
 
189
    def on_destroy(self, widget):
 
190
        self.__worker.stop()
 
191
        if self.__worker.is_alive():
 
192
            self.__worker.join()
188
193
 
189
194
    def add(self, username, role):
190
195
        """Add the given username in the role box and add in the worker queue.