commit
24757a6922
|
@ -7,7 +7,11 @@ assignees: ''
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Please fill out as many of these fields as you can
|
Please try moving the terminator config out of the way to see if that solves the
|
||||||
|
problem. If it does, and you still want to open the bug, then please attach the
|
||||||
|
config file to the issue
|
||||||
|
|
||||||
|
Fill out as many of these fields as you can
|
||||||
|
|
||||||
**Describe the bug**
|
**Describe the bug**
|
||||||
A clear and concise description of what the bug is.
|
A clear and concise description of what the bug is.
|
||||||
|
|
|
@ -111,7 +111,6 @@ DEFAULTS = {
|
||||||
'title_inactive_fg_color' : '#000000',
|
'title_inactive_fg_color' : '#000000',
|
||||||
'title_inactive_bg_color' : '#c0bebf',
|
'title_inactive_bg_color' : '#c0bebf',
|
||||||
'inactive_color_offset': 0.8,
|
'inactive_color_offset': 0.8,
|
||||||
'fast_resize_step': 50,
|
|
||||||
'enabled_plugins' : ['LaunchpadBugURLHandler',
|
'enabled_plugins' : ['LaunchpadBugURLHandler',
|
||||||
'LaunchpadCodeURLHandler',
|
'LaunchpadCodeURLHandler',
|
||||||
'APTURLHandler'],
|
'APTURLHandler'],
|
||||||
|
@ -160,10 +159,6 @@ DEFAULTS = {
|
||||||
'resize_down' : '<Shift><Control>Down',
|
'resize_down' : '<Shift><Control>Down',
|
||||||
'resize_left' : '<Shift><Control>Left',
|
'resize_left' : '<Shift><Control>Left',
|
||||||
'resize_right' : '<Shift><Control>Right',
|
'resize_right' : '<Shift><Control>Right',
|
||||||
'resize_up_fast' : '<Shift>Up',
|
|
||||||
'resize_down_fast' : '<Shift>Down',
|
|
||||||
'resize_left_fast' : '<Shift>Left',
|
|
||||||
'resize_right_fast': '<Shift>Right',
|
|
||||||
'move_tab_right' : '<Shift><Control>Page_Down',
|
'move_tab_right' : '<Shift><Control>Page_Down',
|
||||||
'move_tab_left' : '<Shift><Control>Page_Up',
|
'move_tab_left' : '<Shift><Control>Page_Up',
|
||||||
'toggle_zoom' : '<Shift><Control>x',
|
'toggle_zoom' : '<Shift><Control>x',
|
||||||
|
|
|
@ -130,7 +130,7 @@ class Container(object):
|
||||||
self.terminator.group_hoover()
|
self.terminator.group_hoover()
|
||||||
return(True)
|
return(True)
|
||||||
|
|
||||||
def resizeterm(self, widget, keyname, fast = False):
|
def resizeterm(self, widget, keyname):
|
||||||
"""Handle a keyboard event requesting a terminal resize"""
|
"""Handle a keyboard event requesting a terminal resize"""
|
||||||
raise NotImplementedError('resizeterm')
|
raise NotImplementedError('resizeterm')
|
||||||
|
|
||||||
|
|
|
@ -376,7 +376,7 @@ class Notebook(Container, Gtk.Notebook):
|
||||||
err('Notebook::closetab: child is unknown type %s' % child)
|
err('Notebook::closetab: child is unknown type %s' % child)
|
||||||
return
|
return
|
||||||
|
|
||||||
def resizeterm(self, widget, keyname, fast = False):
|
def resizeterm(self, widget, keyname):
|
||||||
"""Handle a keyboard event requesting a terminal resize"""
|
"""Handle a keyboard event requesting a terminal resize"""
|
||||||
raise NotImplementedError('resizeterm')
|
raise NotImplementedError('resizeterm')
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ class Paned(Container):
|
||||||
self.signals.append({'name': 'resize-term',
|
self.signals.append({'name': 'resize-term',
|
||||||
'flags': GObject.SignalFlags.RUN_LAST,
|
'flags': GObject.SignalFlags.RUN_LAST,
|
||||||
'return_type': None,
|
'return_type': None,
|
||||||
'param_types': (GObject.TYPE_STRING, GObject.TYPE_BOOLEAN)})
|
'param_types': (GObject.TYPE_STRING,)})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable-msg=W0613
|
# pylint: disable-msg=W0613
|
||||||
|
@ -325,19 +325,16 @@ class Paned(Container):
|
||||||
parent.replace(self, child)
|
parent.replace(self, child)
|
||||||
del(self)
|
del(self)
|
||||||
|
|
||||||
def resizeterm(self, widget, keyname, fast = False):
|
def resizeterm(self, widget, keyname):
|
||||||
"""Handle a keyboard event requesting a terminal resize"""
|
"""Handle a keyboard event requesting a terminal resize"""
|
||||||
if keyname in ['up', 'down'] and isinstance(self, Gtk.VPaned):
|
if keyname in ['up', 'down'] and isinstance(self, Gtk.VPaned):
|
||||||
# This is a key we can handle
|
# This is a key we can handle
|
||||||
position = self.get_position()
|
position = self.get_position()
|
||||||
|
|
||||||
if not fast:
|
if self.maker.isinstance(widget, 'Terminal'):
|
||||||
if self.maker.isinstance(widget, 'Terminal'):
|
fontheight = widget.vte.get_char_height()
|
||||||
fontheight = widget.vte.get_char_height()
|
|
||||||
else:
|
|
||||||
fontheight = 10
|
|
||||||
else:
|
else:
|
||||||
fontheight = self.config['fast_resize_step']
|
fontheight = 10
|
||||||
|
|
||||||
if keyname == 'up':
|
if keyname == 'up':
|
||||||
self.set_position(position - fontheight)
|
self.set_position(position - fontheight)
|
||||||
|
@ -347,13 +344,10 @@ class Paned(Container):
|
||||||
# This is a key we can handle
|
# This is a key we can handle
|
||||||
position = self.get_position()
|
position = self.get_position()
|
||||||
|
|
||||||
if not fast:
|
if self.maker.isinstance(widget, 'Terminal'):
|
||||||
if self.maker.isinstance(widget, 'Terminal'):
|
fontwidth = widget.vte.get_char_width()
|
||||||
fontwidth = widget.vte.get_char_width()
|
|
||||||
else:
|
|
||||||
fontwidth = 10
|
|
||||||
else:
|
else:
|
||||||
fontwidth = self.config['fast_resize_step']
|
fontwidth = 10
|
||||||
|
|
||||||
if keyname == 'left':
|
if keyname == 'left':
|
||||||
self.set_position(position - fontwidth)
|
self.set_position(position - fontwidth)
|
||||||
|
@ -361,7 +355,7 @@ class Paned(Container):
|
||||||
self.set_position(position + fontwidth)
|
self.set_position(position + fontwidth)
|
||||||
else:
|
else:
|
||||||
# This is not a key we can handle
|
# This is not a key we can handle
|
||||||
self.emit('resize-term', keyname, fast)
|
self.emit('resize-term', keyname)
|
||||||
|
|
||||||
def create_layout(self, layout):
|
def create_layout(self, layout):
|
||||||
"""Apply layout configuration"""
|
"""Apply layout configuration"""
|
||||||
|
|
|
@ -134,10 +134,6 @@ class PrefsEditor:
|
||||||
'resize_down' : _('Resize the terminal down'),
|
'resize_down' : _('Resize the terminal down'),
|
||||||
'resize_left' : _('Resize the terminal left'),
|
'resize_left' : _('Resize the terminal left'),
|
||||||
'resize_right' : _('Resize the terminal right'),
|
'resize_right' : _('Resize the terminal right'),
|
||||||
'resize_up_fast' : _('Resize the terminal up (faster)'),
|
|
||||||
'resize_down_fast' : _('Resize the terminal down (faster)'),
|
|
||||||
'resize_left_fast' : _('Resize the terminal left (faster)'),
|
|
||||||
'resize_right_fast': _('Resize the terminal right (faster)'),
|
|
||||||
'move_tab_right' : _('Move the tab right'),
|
'move_tab_right' : _('Move the tab right'),
|
||||||
'move_tab_left' : _('Move the tab left'),
|
'move_tab_left' : _('Move the tab left'),
|
||||||
'toggle_zoom' : _('Maximize terminal'),
|
'toggle_zoom' : _('Maximize terminal'),
|
||||||
|
|
|
@ -87,7 +87,7 @@ class Terminal(Gtk.VBox):
|
||||||
'maximise': (GObject.SignalFlags.RUN_LAST, None, ()),
|
'maximise': (GObject.SignalFlags.RUN_LAST, None, ()),
|
||||||
'unzoom': (GObject.SignalFlags.RUN_LAST, None, ()),
|
'unzoom': (GObject.SignalFlags.RUN_LAST, None, ()),
|
||||||
'resize-term': (GObject.SignalFlags.RUN_LAST, None,
|
'resize-term': (GObject.SignalFlags.RUN_LAST, None,
|
||||||
(GObject.TYPE_STRING, GObject.TYPE_BOOLEAN)),
|
(GObject.TYPE_STRING,)),
|
||||||
'navigate': (GObject.SignalFlags.RUN_LAST, None,
|
'navigate': (GObject.SignalFlags.RUN_LAST, None,
|
||||||
(GObject.TYPE_STRING,)),
|
(GObject.TYPE_STRING,)),
|
||||||
'tab-change': (GObject.SignalFlags.RUN_LAST, None,
|
'tab-change': (GObject.SignalFlags.RUN_LAST, None,
|
||||||
|
@ -1820,28 +1820,16 @@ class Terminal(Gtk.VBox):
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
def key_resize_up(self):
|
def key_resize_up(self):
|
||||||
self.emit('resize-term', 'up', False)
|
self.emit('resize-term', 'up')
|
||||||
|
|
||||||
def key_resize_down(self):
|
def key_resize_down(self):
|
||||||
self.emit('resize-term', 'down', False)
|
self.emit('resize-term', 'down')
|
||||||
|
|
||||||
def key_resize_left(self):
|
def key_resize_left(self):
|
||||||
self.emit('resize-term', 'left', False)
|
self.emit('resize-term', 'left')
|
||||||
|
|
||||||
def key_resize_right(self):
|
def key_resize_right(self):
|
||||||
self.emit('resize-term', 'right', False)
|
self.emit('resize-term', 'right')
|
||||||
|
|
||||||
def key_resize_up_fast(self):
|
|
||||||
self.emit('resize-term', 'up', True)
|
|
||||||
|
|
||||||
def key_resize_down_fast(self):
|
|
||||||
self.emit('resize-term', 'down', True)
|
|
||||||
|
|
||||||
def key_resize_left_fast(self):
|
|
||||||
self.emit('resize-term', 'left', True)
|
|
||||||
|
|
||||||
def key_resize_right_fast(self):
|
|
||||||
self.emit('resize-term', 'right', True)
|
|
||||||
|
|
||||||
def key_move_tab_right(self):
|
def key_move_tab_right(self):
|
||||||
self.emit('move-tab', 'right')
|
self.emit('move-tab', 'right')
|
||||||
|
|
Loading…
Reference in New Issue