~alecu/ubuntuone-control-panel/the-outer-limits

« back to all changes in this revision

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

  • Committer: Tarmac
  • Author(s): Natalia B. Bidart
  • Date: 2011-03-04 18:31:43 UTC
  • mfrom: (90.1.8 tweak-overview)
  • Revision ID: tarmac-20110304183143-3e9nizhrpoy951or
- Added new layout and text to overview screen (LP: #728663).
- Removed banner from management panel (LP: #728663).
- Fixed typo on splash screen (LP: #725802).

Show diffs side-by-side

added added

removed removed

Lines of Context:
210
210
 
211
211
    CREDENTIALS_ERROR = _('There was a problem while retrieving the '
212
212
        'credentials.')
213
 
    AUTHORIZATION_DENIED = _('The authentication was cancelled.')
214
213
    NETWORK_OFFLINE = _('An internet connection is required to join or sign '
215
214
        'in to %(app_name)s.')
216
215
    CONNECT = _('Connect to Ubuntu One')
 
216
    LEARN_MORE_LINK = 'https://one.ubuntu.com/'
217
217
 
218
218
    def __init__(self, main_window):
219
219
        GreyableBin.__init__(self)
296
296
        self.set_property('greyed', True)
297
297
        self.warning_label.set_text('')
298
298
 
 
299
    def on_learn_more_button_clicked(self, *a, **kw):
 
300
        """User wants to learn more."""
 
301
        uri_hook(self.learn_more_button, self.LEARN_MORE_LINK)
 
302
 
299
303
    @filter_by_app_name
300
304
    @log_call(logger.info, with_args=False)
301
305
    def on_credentials_found(self, app_name, credentials):
322
326
    def on_authorization_denied(self, app_name):
323
327
        """SSO backend notifies that user refused auth for 'app_name'."""
324
328
        self.set_property('greyed', False)
325
 
        self._set_warning(self.AUTHORIZATION_DENIED)
326
329
 
327
330
    @log_call(logger.info)
328
331
    def on_network_state_changed(self, state):