Set window size after applying font config to ensure a 80x24 terminal.
This commit is contained in:
parent
32eb6f9d5e
commit
5c1bd46177
|
@ -133,7 +133,6 @@ class Terminal(gtk.VBox):
|
||||||
dbg('assigning Terminal a TERMINATOR_UUID of: %s' % self.uuid.urn)
|
dbg('assigning Terminal a TERMINATOR_UUID of: %s' % self.uuid.urn)
|
||||||
|
|
||||||
self.vte = vte.Terminal()
|
self.vte = vte.Terminal()
|
||||||
self.vte.set_size(80, 24)
|
|
||||||
self.vte._expose_data = None
|
self.vte._expose_data = None
|
||||||
if not hasattr(self.vte, "set_opacity") or \
|
if not hasattr(self.vte, "set_opacity") or \
|
||||||
not hasattr(self.vte, "is_composited"):
|
not hasattr(self.vte, "is_composited"):
|
||||||
|
@ -173,6 +172,8 @@ class Terminal(gtk.VBox):
|
||||||
if not env_proxy:
|
if not env_proxy:
|
||||||
if self.config['http_proxy'] and self.config['http_proxy'] != '':
|
if self.config['http_proxy'] and self.config['http_proxy'] != '':
|
||||||
os.putenv('http_proxy', self.config['http_proxy'])
|
os.putenv('http_proxy', self.config['http_proxy'])
|
||||||
|
self.reconfigure()
|
||||||
|
self.vte.set_size(80, 24)
|
||||||
|
|
||||||
def get_vte(self):
|
def get_vte(self):
|
||||||
"""This simply returns the vte widget we are using"""
|
"""This simply returns the vte widget we are using"""
|
||||||
|
|
Loading…
Reference in New Issue