~alecu/ubuntu-sso-client/fix-100pct-links

« back to all changes in this revision

Viewing changes to ubuntu_sso/gui.py

  • Committer: Tarmac
  • Author(s): natalia.bidart at canonical
  • Date: 2010-09-14 23:16:17 UTC
  • mfrom: (623.3.1 trunk)
  • Revision ID: tarmac-20100914231617-2wj5fg41gk6bruvn
Delay import of webkit to be able to build on non-graphical envs (LP: #628956).

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
import gettext
30
30
import gobject
31
31
import gtk
32
 
import webkit
33
32
import xdg
34
33
 
35
34
from dbus.mainloop.glib import DBusGMainLoop
950
949
 
951
950
    def on_tc_browser_vbox_show(self, *args, **kwargs):
952
951
        """The T&C page is being shown."""
 
952
        # delay the import of webkit to be able to build without it
 
953
        import webkit
953
954
        browser = webkit.WebView()
954
955
        settings = browser.get_settings()
955
956
        settings.set_property("enable-plugins", False)