~diegosarmentero/ubuntuone-control-panel/quota-warning

« back to all changes in this revision

Viewing changes to ubuntuone/controlpanel/gui/gtk/gui.py

  • Committer: Tarmac
  • Author(s): Natalia B. Bidart
  • Date: 2012-02-07 16:04:01 UTC
  • mfrom: (256.1.5 gicrazyness)
  • Revision ID: tarmac-20120207160401-s7plxgq0jalvm264
- Avoid TypeError when fetching credentials in the Gtk OverviewPanel
   (LP: #927743).
- Run the whole test suite with a single command (LP: #927770).
- Do proper cleanup when dealing with UIs (LP: #925617).

Show diffs side-by-side

added added

removed removed

Lines of Context:
178
178
        label.set_markup(WARNING_MARKUP % message)
179
179
        label.show()
180
180
 
 
181
    def destroy(self):
 
182
        """Cleanup."""
 
183
 
181
184
 
182
185
class UbuntuOneBin(gtk.VBox):
183
186
    """A Ubuntu One bin."""
248
251
 
249
252
    __gsignals__ = {
250
253
        'credentials-found': (gobject.SIGNAL_RUN_FIRST,  gobject.TYPE_NONE,
251
 
                              (gobject.TYPE_BOOLEAN, gobject.TYPE_PYOBJECT)),
 
254
                              (gobject.TYPE_BOOLEAN,)),
252
255
    }
253
256
 
254
257
    def __init__(self, main_window):
345
348
    def on_credentials_found(self, credentials):
346
349
        """Credentials backend notifies of credentials found."""
347
350
        self.set_property('greyed', False)
348
 
        self.emit('credentials-found', self._credentials_are_new, credentials)
 
351
        self.emit('credentials-found', self._credentials_are_new)
349
352
 
350
353
    @log_call(logger.info)
351
354
    def on_credentials_not_found(self):
1568
1571
        """Show the overview panel."""
1569
1572
        self.set_current_page(0)
1570
1573
 
1571
 
    def on_show_management_panel(self, widget=None,
1572
 
                                 credentials_are_new=False, token=None):
 
1574
    def on_show_management_panel(self, widget=None, credentials_are_new=False):
1573
1575
        """Show the notebook (main panel)."""
1574
1576
        if self.get_current_page() == 0:
1575
1577
            self.management.load()