~mvo/ubuntu-sso-client/strawman-lp711413

« back to all changes in this revision

Viewing changes to ubuntu_sso/gtk/gui.py

  • Committer: Natalia B. Bidart
  • Date: 2010-11-19 19:53:22 UTC
  • mto: This revision was merged to the branch mainline in revision 653.
  • Revision ID: natalia.bidart@canonical.com-20101119195322-kiwyeov087oefpcy
Splitting GUI code out of backend (LP: #677518).

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
from dbus.mainloop.glib import DBusGMainLoop
38
38
 
39
 
from ubuntu_sso import DBUS_ACCOUNT_PATH, DBUS_BUS_NAME, DBUS_IFACE_USER_NAME
 
39
from ubuntu_sso import (DBUS_ACCOUNT_PATH, DBUS_BUS_NAME, DBUS_IFACE_USER_NAME,
 
40
    NO_OP)
40
41
from ubuntu_sso.logger import setup_logging
41
42
 
42
43
 
66
67
WEBKIT_WEB_NAVIGATION_REASON_FORM_RESUBMITTED = 4
67
68
WEBKIT_WEB_NAVIGATION_REASON_OTHER = 5
68
69
 
69
 
 
70
 
NO_OP = lambda *args, **kwargs: None
71
70
DEFAULT_WIDTH = 30
72
71
# To be replaced by values from the theme (LP: #616526)
73
72
HELP_TEXT_COLOR = gtk.gdk.Color("#bfbfbf")
74
73
WARNING_TEXT_COLOR = gtk.gdk.Color("red")
75
74
 
76
 
SIG_LOGIN_FAILED = 'login-failed'
77
75
SIG_LOGIN_SUCCEEDED = 'login-succeeded'
78
 
SIG_REGISTRATION_FAILED = 'registration-failed'
79
76
SIG_REGISTRATION_SUCCEEDED = 'registration-succeeded'
80
77
SIG_USER_CANCELATION = 'user-cancelation'
81
78
 
82
79
SIGNAL_ARGUMENTS = [
83
 
    (SIG_LOGIN_FAILED, (gobject.TYPE_STRING, gobject.TYPE_STRING)),
84
80
    (SIG_LOGIN_SUCCEEDED, (gobject.TYPE_STRING, gobject.TYPE_STRING,)),
85
 
    (SIG_REGISTRATION_FAILED, (gobject.TYPE_STRING, gobject.TYPE_STRING)),
86
81
    (SIG_REGISTRATION_SUCCEEDED, (gobject.TYPE_STRING, gobject.TYPE_STRING,)),
87
82
    (SIG_USER_CANCELATION, (gobject.TYPE_STRING,)),
88
83
]