~maclin.jun/ubiquity/fix_1304410

« back to all changes in this revision

Viewing changes to ubiquity/frontend/gtk_ui.py

  • Committer: Dimitri John Ledkov
  • Date: 2014-11-12 14:34:35 UTC
  • mfrom: (6231.1.1 ubiquity)
  • Revision ID: dimitri.j.ledkov@intel.com-20141112143435-jajb3c4d3uxucl6d
* Port the Vte widget to use the 2.91 API.
* Automatic update of included source packages: choose-mirror
  2.57ubuntu2, netcfg 1.119ubuntu2, partconf 1.46, partman-base
  179ubuntu1, partman-basicfilesystems 104ubuntu1, partman-lvm 98,
  preseed 1.64ubuntu2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
901
901
            style.add_class('menubar')
902
902
 
903
903
        # TODO lazy load
904
 
        from gi.repository import Vte
 
904
        import gi
 
905
        gi.require_version("Vte", "2.91")
 
906
        from gi.repository import Vte, Pango
905
907
        self.vte = Vte.Terminal()
906
908
        self.install_details_sw.add(self.vte)
907
909
        tail_cmd = [
908
910
            '/bin/busybox', 'tail', '-f', '/var/log/installer/debug',
909
911
            '-f', '/var/log/syslog', '-q',
910
912
        ]
911
 
        self.vte.fork_command_full(0, None, tail_cmd, None, 0, None, None)
912
 
        self.vte.set_font_from_string("Ubuntu Mono 8")
 
913
        self.vte.spawn_sync(0, None, tail_cmd, None, 0, None, None, None)
 
914
        fontdesc = Pango.font_description_from_string("Ubuntu Mono 8")
 
915
        self.vte.set_font(fontdesc)
913
916
        self.vte.show()
914
917
        # FIXME shrink the window horizontally instead of locking the window
915
918
        # size.