Config.options is not suitable for use as Terminal layout command overrides. Add a simple thing that is
This commit is contained in:
parent
64a0f70c41
commit
499206f3e9
|
@ -89,6 +89,7 @@ class Terminal(gtk.VBox):
|
||||||
default_encoding = None
|
default_encoding = None
|
||||||
custom_encoding = None
|
custom_encoding = None
|
||||||
custom_font_size = None
|
custom_font_size = None
|
||||||
|
layout_command = None
|
||||||
|
|
||||||
composite_support = None
|
composite_support = None
|
||||||
|
|
||||||
|
@ -1058,6 +1059,8 @@ for %s (%s)' % (name, urlplugin.__class__.__name__))
|
||||||
options.execute = None
|
options.execute = None
|
||||||
elif self.config['use_custom_command']:
|
elif self.config['use_custom_command']:
|
||||||
command = self.config['custom_command']
|
command = self.config['custom_command']
|
||||||
|
elif self.layout_command:
|
||||||
|
command = self.layout_command
|
||||||
|
|
||||||
if type(command) is list:
|
if type(command) is list:
|
||||||
shell = util.path_lookup(command[0])
|
shell = util.path_lookup(command[0])
|
||||||
|
@ -1218,10 +1221,7 @@ for %s (%s)' % (name, urlplugin.__class__.__name__))
|
||||||
def create_layout(self, layout):
|
def create_layout(self, layout):
|
||||||
"""Apply our layout"""
|
"""Apply our layout"""
|
||||||
if layout.has_key('command') and layout['command'] != '':
|
if layout.has_key('command') and layout['command'] != '':
|
||||||
options = self.config.options_get()
|
self.layout_command = layout['command']
|
||||||
if options:
|
|
||||||
options.command = layout['command']
|
|
||||||
self.config.options_set(options)
|
|
||||||
|
|
||||||
# There now begins a great list of keyboard event handlers
|
# There now begins a great list of keyboard event handlers
|
||||||
def key_zoom_in(self):
|
def key_zoom_in(self):
|
||||||
|
|
Loading…
Reference in New Issue